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

Method testPadding

test/IECore/FileSequence.py:139–147  ·  view source on GitHub ↗
( self )

Source from the content-addressed store, hash-verified

137 self.assertEqual( s.fileNames(), [] )
138
139 def testPadding( self ) :
140
141 s = IECore.FileSequence( "seq.#.tif", IECore.FrameRange( 0, 2 ) )
142 self.assertEqual( s.getPadding(), 1 )
143 s.setPadding( 4 )
144 self.assertEqual( s.getPadding(), 4 )
145 self.assertEqual( s.fileName, "seq.####.tif" )
146
147 self.assertEqual( s.fileNames(), ["seq.0000.tif", "seq.0001.tif", "seq.0002.tif"] )
148
149 def testRepr( self ) :
150 import IECore

Callers

nothing calls this directly

Calls 5

getPaddingMethod · 0.95
setPaddingMethod · 0.95
fileNamesMethod · 0.95
FileSequenceMethod · 0.80
FrameRangeMethod · 0.80

Tested by

no test coverage detected