|
lsst.astshim
22.0.1+01bcf6a671
|
Public Member Functions | |
| def | assertObjectsIdentical (self, obj1, obj2, checkType=True) |
| def | checkCopy (self, obj) |
| def | checkPersistence (self, obj, typeFromChannel=None) |
Base class for unit tests of objects
| def astshim.test.ObjectTestCase.assertObjectsIdentical | ( | self, | |
| obj1, | |||
| obj2, | |||
checkType = True |
|||
| ) |
Assert that two astshim objects are identical. Identical means the objects are of the same class (if checkType) and all properties are identical (including whether set or defaulted).
| def astshim.test.ObjectTestCase.checkCopy | ( | self, | |
| obj | |||
| ) |
Check that an astshim object can be deep-copied
| def astshim.test.ObjectTestCase.checkPersistence | ( | self, | |
| obj, | |||
typeFromChannel = None |
|||
| ) |
Check that an astshim object can be persisted and unpersisted
@param[in] obj Object to be checked
@param[in] typeFromChannel Type of object expected to be read from
a channel (since some thin wrapper types are read
as the underlying type); None if the original type
Check persistence using Channel, FitsChan (with native encoding,
as the only encoding compatible with all AST objects), XmlChan
and pickle.