#NEWLINE# def setUp( self ) : #NEWLINE# #INDENT# 'Sets up the needed objects used throughout the test.' #NEWLINE# self . _resolver_context = context . Context ( ) #NEWLINE# test_file = os . path . join ( 'test_data' , 'vsstest.qcow2' ) #NEWLINE# path_spec = os_path_spec . OSPathSpec ( location = test_file ) #NEWLINE# self . _qcow_path_spec = qcow_path_spec . QCOWPathSpec ( parent = path_spec ) #NEWLINE# self . _ntfs_path_spec = ntfs_path_spec . NTFSPathSpec ( location = '\\' , parent = self . _qcow_path_spec ) #NEWLINE# self . _file_system = ntfs_file_system . NTFSFileSystem ( self . _resolver_context ) #NEWLINE# self . _file_system . Open ( self . _ntfs_path_spec )