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

Method testPreservation

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

Source from the content-addressed store, hash-verified

76 self.assertEqual( r, eval( repr( r ) ) )
77
78 def testPreservation( self ) :
79
80 for i in range( 1, 1000 ) :
81
82 s = IECore.FrameRange( random.randint( 1, 100 ), random.randint( 100, 200 ) )
83 ss = IECore.BinaryFrameList( s )
84
85 sl = s.asList()
86 ssl = ss.asList()
87 self.assertEqual( len( sl ), len( ssl ) )
88
89 for f in sl :
90 self.assertTrue( f in ssl )
91
92if __name__ == "__main__":
93 unittest.main()

Callers

nothing calls this directly

Calls 5

asListMethod · 0.95
asListMethod · 0.95
FrameRangeMethod · 0.80
BinaryFrameListMethod · 0.80
lenFunction · 0.50

Tested by

no test coverage detected