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

Method testAmbiguousPadding

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

Source from the content-addressed store, hash-verified

380 self.assertEqual( IECore.ls( os.path.join( "test", "sequences", "lsTest", "c.####.tif" ) ), None )
381
382 def testAmbiguousPadding( self ):
383
384 self.tearDown()
385 os.makedirs( os.path.join( "test", "sequences", "lsTest" ) )
386
387 s1 = IECore.FileSequence( os.path.join( "test", "sequences", "lsTest", "a.#.tif" ), IECore.FrameRange( 99, 110 ) )
388 s2 = IECore.FileSequence( os.path.join( "test", "sequences", "lsTest", "a.##.tif" ), IECore.FrameRange( 99, 110 ) )
389
390 for f in s1.fileNames() :
391 self.touch( f )
392
393 l = IECore.ls( os.path.join( "test", "sequences", "lsTest", "a.#.tif" ) )
394 self.assertEqual( s1, l )
395
396 l = IECore.ls( os.path.join( "test", "sequences", "lsTest", "a.##.tif" ) )
397 self.assertEqual( s2, l )
398
399 def testMinLength( self ) :
400

Callers

nothing calls this directly

Calls 7

tearDownMethod · 0.95
fileNamesMethod · 0.95
touchMethod · 0.95
joinMethod · 0.80
FileSequenceMethod · 0.80
FrameRangeMethod · 0.80
lsMethod · 0.45

Tested by

no test coverage detected