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

Method testStr

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

Source from the content-addressed store, hash-verified

59 self.assertEqual( r.asList(), [ 1, 5, 3, 2, 4 ] )
60
61 def testStr( self ) :
62
63 r = IECore.BinaryFrameList( IECore.FrameRange( 1, 11, 2 ) )
64 self.assertEqual( str( r ), "1-11x2b" )
65
66 r = IECore.BinaryFrameList( IECore.CompoundFrameList( [ IECore.FrameRange( 1, 10 ), IECore.FrameRange( 20, 30 ) ] ) )
67 self.assertEqual( str( r ), "(1-10,20-30)b" )
68
69 def testRepr( self ) :
70 import IECore

Callers

nothing calls this directly

Calls 4

BinaryFrameListMethod · 0.80
FrameRangeMethod · 0.80
CompoundFrameListMethod · 0.80
strFunction · 0.50

Tested by

no test coverage detected