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

Method testMapping

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

Source from the content-addressed store, hash-verified

180 self.assertEqual( s, s.copy() )
181
182 def testMapping( self ) :
183
184 s = IECore.FileSequence( "seq.####.tif", IECore.FrameRange( 3, 7, 2 ) )
185 s2 = s.copy()
186 s2.setPadding( 1 )
187 m = s.mapTo( s2 )
188
189 self.assertEqual( m, { "seq.0003.tif" : "seq.3.tif", "seq.0005.tif" : "seq.5.tif", "seq.0007.tif" : "seq.7.tif" } )
190
191 m = s.mapTo( s2, True )
192 self.assertEqual( m, [ ("seq.0003.tif", "seq.3.tif" ), ("seq.0005.tif", "seq.5.tif"), ("seq.0007.tif", "seq.7.tif") ] )
193
194 def testClumping( self ) :
195

Callers

nothing calls this directly

Calls 5

copyMethod · 0.95
mapToMethod · 0.95
FileSequenceMethod · 0.80
FrameRangeMethod · 0.80
setPaddingMethod · 0.80

Tested by

no test coverage detected