#NEWLINE# def testFindSequenceOnDisk( self ) : #NEWLINE# #INDENT# tests = [ ( 'seq/bar#.exr' , 'seq/bar1000-1002,1004-1006#.exr' ) , ( 'seq/foo.#.exr' , 'seq/foo.1-5#.exr' ) , ( 'seq/foo.#.jpg' , 'seq/foo.1-5#.jpg' ) , ( 'seq/foo.0002.jpg' , 'seq/foo.1-5#.jpg' ) , ( 'seq/foo.#.exr' , 'seq/foo.1-5#.exr' ) , ( 'seq/foo.debug.#.exr' , 'seq/foo.debug.1-5#.exr' ) , ( 'seq/#.exr' , 'seq/1-3#.exr' ) , ( 'seq/bar1001.exr' , 'seq/bar1001.exr' ) , ( 'seq/foo_0001.exr' , 'seq/foo_0001.exr' ) ] #NEWLINE# for ( pattern , expected ) in tests : #NEWLINE# #INDENT# seq = findSequenceOnDisk ( pattern ) #NEWLINE# self . assertTrue ( isinstance ( expected , FileSequence ) ) #NEWLINE# actual = str ( seq ) #NEWLINE# self . assertEqual ( actual , expected )