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

Method test

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

Source from the content-addressed store, hash-verified

480 os.utime( path, None )
481
482 def test( self ) :
483
484 self.tearDown()
485 os.makedirs( os.path.join( "test", "sequences", "mvTest" ) )
486 s = IECore.FileSequence( os.path.join( "test", "sequences", "mvTest", "s.####.tif" ), IECore.FrameRange( 0, 100 ) )
487 for f in s.fileNames() :
488 self.touch( f )
489
490 s2 = IECore.FileSequence( os.path.join( "test", "sequences", "mvTest", "s2.####.tif" ), IECore.FrameRange( 100, 200 ) )
491 IECore.mv( s, s2 )
492 l = IECore.ls( os.path.join( "test", "sequences", "mvTest" ) )
493 self.assertEqual( len( l ), 1 )
494 self.assertEqual( l[0], IECore.FileSequence( "s2.####.tif", IECore.FrameRange( 100, 200 ) ) )
495
496 def testOverlapping( self ) :
497

Callers

nothing calls this directly

Calls 8

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

Tested by

no test coverage detected