26 """A basic object for testing. Contains a data blob that can be compared with other TestObject instances
27 for equality (
or inequality).
34 return self.
datadata == other.data
37 return self.
datadata != other.data
40 return self.
datadata < other.data
43 return self.
datadata <= other.data
46 return self.
datadata > other.data
49 return self.
datadata >= other.data
52 return "TestObject(data=%r)" % self.
datadata
56 """An object for testing that contains 2 objects.
68 return cls(componentInfo[
'a'].obj, componentInfo[
'b'].obj)
72 componentInfo[
'a'].obj = obj.objA
73 componentInfo[
'b'].obj = obj.objB
76 return "TestObjectPair(objA=%r, objB=%r)" % (self.
objAobjA, self.
objBobjB)
94 """A test object with camel case setter and getter e.g. `def setFoo...`"""
106 """A test object with lower case camel case setter and getter e.g. `def setFoo...`"""
def disassembler(obj, dataId, componentInfo)
def assembler(dataId, componentInfo, cls)
def __init__(self, objA=None, objB=None)