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

Method test

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

Source from the content-addressed store, hash-verified

39class testBinaryFrameList( unittest.TestCase ) :
40
41 def test( self ) :
42
43 r = IECore.BinaryFrameList( IECore.FrameRange( 1, 5) )
44 self.assertEqual( r.asList(), [ 1, 5, 3, 2, 4 ] )
45
46 r = IECore.BinaryFrameList( IECore.FrameRange( 1, 3) )
47 self.assertEqual( r.asList(), [ 1, 3, 2 ] )
48
49 r = IECore.BinaryFrameList( IECore.FrameRange( 1, 6) )
50 self.assertEqual( r.asList(), [ 1, 6, 3, 2, 4, 5 ] )
51
52 r = IECore.BinaryFrameList( IECore.FrameRange( 1, 7) )
53 self.assertEqual( r.asList(), [ 1, 7, 4, 2, 5, 3, 6 ] )
54
55 def testParsing( self ) :
56

Callers

nothing calls this directly

Calls 3

asListMethod · 0.95
BinaryFrameListMethod · 0.80
FrameRangeMethod · 0.80

Tested by

no test coverage detected