<s> """<STR_LIT>""" <EOL> import os <EOL> import unittest <EOL> from dfvfs . lib import errors <EOL> from dfvfs . path import ewf_path_spec <EOL> from dfvfs . path import os_path_spec <EOL> from tests . file_io import test_lib <EOL> class EWFFileTest ( test_lib . ImageFileTestCase ) : <EOL> """<STR_LIT>""" <EOL> def setUp ( self ) : <EOL> """<STR_LIT>""" <EOL> super ( EWFFileTest , self ) . setUp ( ) <EOL> test_file = os . path . join ( u'<STR_LIT>' , u'<STR_LIT>' ) <EOL> self . _os_path_spec = os_path_spec . OSPathSpec ( location = test_file ) <EOL> self . _ewf_path_spec = ewf_path_spec . EWFPathSpec ( parent = self . _os_path_spec ) <EOL> def testOpenCloseInode ( self ) : <EOL> """<STR_LIT>""" <EOL> self . _TestOpenCloseInode ( self . _ewf_path_spec ) <EOL> def testOpenCloseLocation ( self ) : <EOL> """<STR_LIT>""" <EOL> self . _TestOpenCloseLocation ( self . _ewf_path_spec ) <EOL> path_spec = ewf_path_spec . EWFPathSpec ( parent = self . _os_path_spec ) <EOL> path_spec . parent = None <EOL> with self . assertRaises ( errors . PathSpecError ) : <EOL> self . _TestOpenCloseLocation ( path_spec ) <EOL> def testSeek ( self ) : <EOL> """<STR_LIT>""" <EOL> self . _TestSeek ( self . _ewf_path_spec ) <EOL> def testRead ( self ) : <EOL> """<STR_LIT>""" <EOL> self . _TestRead ( self . _ewf_path_spec ) <EOL> class SplitEWFFileTest ( test_lib . PartitionedImageFileTestCase ) : <EOL> """<STR_LIT>""" <EOL> def setUp ( self ) : <EOL> """<STR_LIT>""" <EOL> super ( SplitEWFFileTest , self ) . setUp ( ) <EOL> test_file = os . path . join ( u'<STR_LIT>' , u'<STR_LIT>' ) <EOL> path_spec = os_path_spec . OSPathSpec ( location = test_file ) <EOL> self . _ewf_path_spec = ewf_path_spec . EWFPathSpec ( parent = path_spec ) <EOL> def testOpenClose ( self ) : <EOL> """<STR_LIT>""" <EOL> self . _TestOpenClose ( self . _ewf_path_spec ) <EOL> def testSeek ( self ) : <EOL> """<STR_LIT>""" <EOL> self . _TestSeek ( self . _ewf_path_spec ) <EOL> def testRead ( self ) : <EOL> """<STR_LIT>""" <EOL> self . _TestRead ( self . _ewf_path_spec ) <EOL> if __name__ == '<STR_LIT:__main__>' : <EOL> unittest . main ( ) </s>
