#NEWLINE# def testGlobE01( self ) : #NEWLINE# #INDENT# 'Test the glob function.' #NEWLINE# expected_segment_file_path_specs = [ ] #NEWLINE# file_system = self . _BuildFileFakeFileSystem ( 'image.E01' , 1 , expected_segment_file_path_specs ) #NEWLINE# path_spec = fake_path_spec . FakePathSpec ( location = '/image.E01' ) #NEWLINE# path_spec = ewf_path_spec . EWFPathSpec ( parent = path_spec ) #NEWLINE# segment_file_path_specs = ewf . EWFGlobPathSpec ( file_system , path_spec ) #NEWLINE# self . assertEqual ( len ( segment_file_path_specs ) , len ( expected_segment_file_path_specs ) ) #NEWLINE# self . assertEqual ( segment_file_path_specs , expected_segment_file_path_specs ) #NEWLINE# expected_segment_file_path_specs = [ ] #NEWLINE# path_spec = fake_path_spec . FakePathSpec ( location = '/bogus.E01' ) #NEWLINE# path_spec = ewf_path_spec . EWFPathSpec ( parent = path_spec ) #NEWLINE# segment_file_path_specs = ewf . EWFGlobPathSpec ( file_system , path_spec ) #NEWLINE# self . assertEqual ( len ( segment_file_path_specs ) , len ( expected_segment_file_path_specs ) ) #NEWLINE# self . assertEqual ( segment_file_path_specs , expected_segment_file_path_specs ) #NEWLINE# expected_segment_file_path_specs = [ ] #NEWLINE# file_system = self . _BuildFileFakeFileSystem ( 'image.E01' , 10 , expected_segment_file_path_specs ) #NEWLINE# path_spec = fake_path_spec . FakePathSpec ( location = '/image.E01' ) #NEWLINE# path_spec = ewf_path_spec . EWFPathSpec ( parent = path_spec ) #NEWLINE# segment_file_path_specs = ewf . EWFGlobPathSpec ( file_system , path_spec ) #NEWLINE# self . assertEqual ( len ( segment_file_path_specs ) , len ( expected_segment_file_path_specs ) ) #NEWLINE# self . assertEqual ( segment_file_path_specs , expected_segment_file_path_specs ) #NEWLINE# expected_segment_file_path_specs = [ ] #NEWLINE# file_system = self . _BuildFileFakeFileSystem ( 'image.E01' , 100 , expected_segment_file_path_specs ) #NEWLINE# path_spec = fake_path_spec . FakePathSpec ( location = '/image.E01' ) #NEWLINE# path_spec = ewf_path_spec . EWFPathSpec ( parent = path_spec ) #NEWLINE# segment_file_path_specs = ewf . EWFGlobPathSpec ( file_system , path_spec ) #NEWLINE# self . assertEqual ( len ( segment_file_path_specs ) , len ( expected_segment_file_path_specs ) ) #NEWLINE# self . assertEqual ( segment_file_path_specs , expected_segment_file_path_specs ) #NEWLINE# expected_segment_file_path_specs = [ ] #NEWLINE# file_system = self . _BuildFileFakeFileSystem ( 'image.E01' , 126 , expected_segment_file_path_specs ) #NEWLINE# path_spec = fake_path_spec . FakePathSpec ( location = '/image.E01' ) #NEWLINE# path_spec = ewf_path_spec . EWFPathSpec ( parent = path_spec ) #NEWLINE# segment_file_path_specs = ewf . EWFGlobPathSpec ( file_system , path_spec ) #NEWLINE# self . assertEqual ( len ( segment_file_path_specs ) , len ( expected_segment_file_path_specs ) ) #NEWLINE# self . assertEqual ( segment_file_path_specs , expected_segment_file_path_specs ) #NEWLINE# expected_segment_file_path_specs = [ ] #NEWLINE# file_system = self . _BuildFileFakeFileSystem ( 'image.E01' , 775 , expected_segment_file_path_specs ) #NEWLINE# path_spec = fake_path_spec . FakePathSpec ( location = '/image.E01' ) #NEWLINE# path_spec = ewf_path_spec . EWFPathSpec ( parent = path_spec ) #NEWLINE# segment_file_path_specs = ewf . EWFGlobPathSpec ( file_system , path_spec ) #NEWLINE# self . assertEqual ( len ( segment_file_path_specs ) , len ( expected_segment_file_path_specs ) ) #NEWLINE# self . assertEqual ( segment_file_path_specs , expected_segment_file_path_specs ) #NEWLINE# expected_segment_file_path_specs = [ ] #NEWLINE# file_system = self . _BuildFileFakeFileSystem ( 'image.E01' , 14970 , expected_segment_file_path_specs ) #NEWLINE# path_spec = fake_path_spec . FakePathSpec ( location = '/image.E01' ) #NEWLINE# path_spec = ewf_path_spec . EWFPathSpec ( parent = path_spec ) #NEWLINE# segment_file_path_specs = ewf . EWFGlobPathSpec ( file_system , path_spec ) #NEWLINE# self . assertEqual ( len ( segment_file_path_specs ) , len ( expected_segment_file_path_specs ) ) #NEWLINE# self . assertEqual ( segment_file_path_specs , expected_segment_file_path_specs ) #NEWLINE# expected_segment_file_path_specs = [ ] #NEWLINE# file_system = self . _BuildFileFakeFileSystem ( 'image.E01' , 14971 , expected_segment_file_path_specs ) #NEWLINE# path_spec = fake_path_spec . FakePathSpec ( location = '/image.E01' ) #NEWLINE# path_spec = ewf_path_spec . EWFPathSpec ( parent = path_spec ) #NEWLINE# with self . assertRaises ( RuntimeError ) : #NEWLINE# #INDENT# segment_file_path_specs = ewf . EWFGlobPathSpec ( file_system , path_spec )