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

Method testOverlapping

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

Source from the content-addressed store, hash-verified

494 self.assertEqual( l[0], IECore.FileSequence( "s2.####.tif", IECore.FrameRange( 100, 200 ) ) )
495
496 def testOverlapping( self ) :
497
498 self.tearDown()
499 os.makedirs( os.path.join( "test", "sequences", "mvTest" ) )
500 s = IECore.FileSequence( os.path.join( "test", "sequences", "mvTest", "s.####.tif" ), IECore.FrameRange( 0, 100 ) )
501 for f in s.fileNames() :
502 self.touch( f )
503
504 s2 = IECore.FileSequence( os.path.join( "test", "sequences", "mvTest", "s.####.tif" ), IECore.FrameRange( 50, 150 ) )
505 IECore.mv( s, s2 )
506 l = IECore.ls( os.path.join( "test", "sequences", "mvTest" ) )
507 self.assertEqual( len( l ), 1 )
508 self.assertEqual( l[0], IECore.FileSequence( "s.####.tif", IECore.FrameRange( 50, 150 ) ) )
509
510 def tearDown( self ) :
511

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