#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' , 'tsk_volume_system.raw' ) #NEWLINE# self . _os_path_spec = os_path_spec . OSPathSpec ( location = test_file ) #NEWLINE# self . _tsk_partition_path_spec = tsk_partition_path_spec . TSKPartitionPathSpec ( location = '/' , parent = self . _os_path_spec ) #NEWLINE# self . _file_system = tsk_partition_file_system . TSKPartitionFileSystem ( self . _resolver_context ) #NEWLINE# self . _file_system . Open ( self . _tsk_partition_path_spec )