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

Method testConstructor

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

Source from the content-addressed store, hash-verified

119
120
121 def testConstructor( self ) :
122
123 self.assertRaises( RuntimeError, IECore.FileSequence, "", IECore.FrameRange( 0, 1 ) )
124
125 s = IECore.FileSequence( "seq.#.tif", IECore.FrameRange( 0, 2 ) )
126 self.assertEqual( s.fileNames(), ["seq.0.tif", "seq.1.tif", "seq.2.tif"] )
127
128 def testFrameListConstructor( self ):
129

Callers

nothing calls this directly

Calls 3

fileNamesMethod · 0.95
FrameRangeMethod · 0.80
FileSequenceMethod · 0.80

Tested by

no test coverage detected