lsst.astshim g38293774b4+62d12e78cb
Loading...
Searching...
No Matches
Public Member Functions | List of all members
astshim.test.ObjectTestCase Class Reference
Inheritance diagram for astshim.test.ObjectTestCase:
astshim.test.MappingTestCase

Public Member Functions

def assertObjectsIdentical (self, obj1, obj2, checkType=True)
 
def checkCopy (self, obj)
 
def checkPersistence (self, obj, typeFromChannel=None)
 

Detailed Description

Base class for unit tests of objects

Member Function Documentation

◆ assertObjectsIdentical()

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).

◆ checkCopy()

def astshim.test.ObjectTestCase.checkCopy (   self,
  obj 
)
Check that an astshim object can be deep-copied

◆ checkPersistence()

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.

The documentation for this class was generated from the following file: