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

Method testAmbiguousPaddingNonContiguous

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

Source from the content-addressed store, hash-verified

442 self.assertEqual( len( l ), 0 )
443
444 def testAmbiguousPaddingNonContiguous( self ):
445
446 self.tearDown()
447 os.makedirs( os.path.join( "test", "sequences", "lsTest" ) )
448
449 s1 = IECore.FileSequence( os.path.join( "test", "sequences", "lsTest", "a.#.tif 98,100,103" ) )
450 s2 = IECore.FileSequence( os.path.join( "test", "sequences", "lsTest", "a.##.tif 98,100,103" ) )
451
452 for f in s1.fileNames() :
453 self.touch( f )
454
455 l = IECore.ls( os.path.join( "test", "sequences", "lsTest", "a.#.tif" ) )
456 self.assertTrue( l )
457 self.assertEqual( s1.fileName, l.fileName )
458 self.assertEqual( s1.frameList.asList(), l.frameList.asList() )
459
460 l = IECore.ls( os.path.join( "test", "sequences", "lsTest", "a.##.tif" ) )
461 self.assertTrue( l )
462 self.assertEqual( s2.fileName, l.fileName )
463 self.assertEqual( s2.frameList.asList(), l.frameList.asList() )
464
465 l = IECore.ls( os.path.join( "test", "sequences", "lsTest", "a.###.tif" ) )
466 self.assertFalse( l )
467
468 def tearDown( self ) :
469

Callers

nothing calls this directly

Calls 7

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

Tested by

no test coverage detected