MCPcopy Create free account
hub / github.com/ImageEngine/cortex / testRepr

Method testRepr

test/IECore/NullObjectTest.py:53–59  ·  view source on GitHub ↗
( self )

Source from the content-addressed store, hash-verified

51 self.assertTrue( IECore.NullObject.defaultNullObject().isSame( IECore.NullObject.defaultNullObject() ) )
52
53 def testRepr( self ) :
54
55 o = IECore.NullObject.defaultNullObject()
56 self.assertTrue( eval( repr( o ) ).isSame( o ) )
57
58 o = IECore.NullObject()
59 self.assertEqual( eval( repr( o ) ), o )
60
61if __name__ == "__main__":
62 unittest.main()

Callers

nothing calls this directly

Calls 3

defaultNullObjectMethod · 0.80
NullObjectMethod · 0.80
reprFunction · 0.50

Tested by

no test coverage detected