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

Method testRepr

test/IECore/BinaryFrameList.py:69–76  ·  view source on GitHub ↗
( self )

Source from the content-addressed store, hash-verified

67 self.assertEqual( str( r ), "(1-10,20-30)b" )
68
69 def testRepr( self ) :
70 import IECore
71
72 r = IECore.BinaryFrameList( IECore.FrameRange( 1, 11, 2 ) )
73 self.assertEqual( r, eval( repr( r ) ) )
74
75 r = IECore.BinaryFrameList( IECore.CompoundFrameList( [ IECore.FrameRange( 1, 10 ), IECore.FrameRange( 20, 30 ) ] ) )
76 self.assertEqual( r, eval( repr( r ) ) )
77
78 def testPreservation( self ) :
79

Callers

nothing calls this directly

Calls 4

BinaryFrameListMethod · 0.80
FrameRangeMethod · 0.80
CompoundFrameListMethod · 0.80
reprFunction · 0.50

Tested by

no test coverage detected