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

Method testFormatStringInFilename

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

Source from the content-addressed store, hash-verified

215 self.assertRaises( RuntimeError, s.frameForFileName, "a..exr" )
216
217 def testFormatStringInFilename( self ) :
218
219 s = IECore.FileSequence( "a%20ctest.#.tif", IECore.FrameRange( 10000, 10001 ) )
220
221 self.assertEqual( s.fileNames(), [ "a%20ctest.10000.tif", "a%20ctest.10001.tif" ] )
222
223 def testSpacesInFilename( self ) :
224

Callers

nothing calls this directly

Calls 3

fileNamesMethod · 0.95
FileSequenceMethod · 0.80
FrameRangeMethod · 0.80

Tested by

no test coverage detected