ObsLsstButlerTests#

class lsst.obs.lsst.testHelper.ObsLsstButlerTests(methodName='runTest')#

Bases: TestCase

Base class shared by all tests of the butler and mapper.

This class can not inherit from ObsTests since that will trigger tests in this class directly that will fail.

This class defines a butler and a mapper for each test subclass. They are stored in the _mapper and _butler class attributes to distinguish them from the mapper and butler instance attributes used by ObsTests.

Attributes Summary

instrumentDir

Name of instrument directory within data/input.

Methods Summary

getInstrument()

Retrieve the lsst.obs.base.Instrument class for this instrument.

setUpClass()

Hook method for setting up class fixture before running tests in the class.

tearDownClass()

Hook method for deconstructing the class fixture after running all tests in the class.

Attributes Documentation

instrumentDir = 'TBD'#

Name of instrument directory within data/input.

Methods Documentation

abstract classmethod getInstrument()#

Retrieve the lsst.obs.base.Instrument class for this instrument.

Returns#

instrumentlsst.obs.base.Instrument

The class associated with this instrument.

classmethod setUpClass()#

Hook method for setting up class fixture before running tests in the class.

classmethod tearDownClass()#

Hook method for deconstructing the class fixture after running all tests in the class.