lsst.astshim g1011452fe8+91250f09a0
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

Definition at line 10 of file test.py.

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

Definition at line 14 of file test.py.

◆ checkCopy()

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

Definition at line 26 of file test.py.

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

Definition at line 54 of file test.py.


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