Exemplo n.º 1
0
 def testRead(self):
   """Test the read functionality."""
   img_info = test_lib.FileObjectImageInfo(
       self._file_object, self._file_size,
       image_type=pytsk3.TSK_IMG_TYPE_DETECT)
   self._testRead(img_info)
   img_info.close()
Exemplo n.º 2
0
    def setUp(self):
        """Sets up the needed objects used throughout the test."""
        test_file = os.path.join('test_data', 'image.raw')
        self._file_object = open(test_file, 'rb')

        self._file_size = 1024 * 1024 * 1024 * 1024
        self._img_info = test_lib.FileObjectImageInfo(self._file_object,
                                                      self._file_size)
Exemplo n.º 3
0
    def setUp(self):
        """Sets up the needed objects used throughout the test."""
        test_file = os.path.join('test_data', 'tsk_volume_system.raw')
        self._file_object = open(test_file, 'rb')

        stat_info = os.stat(test_file)
        self._file_size = stat_info.st_size
        self._img_info = test_lib.FileObjectImageInfo(self._file_object,
                                                      self._file_size)
Exemplo n.º 4
0
  def setUp(self):
    """Sets up the needed objects used throughout the test."""
    test_file = os.path.join('test_data', 'image.raw')
    self._file_object = open(test_file, 'rb')

    stat_info = os.stat(test_file)
    self._file_size = stat_info.st_size
    self._img_info = test_lib.FileObjectImageInfo(
        self._file_object, self._file_size,
        image_type=pytsk3.TSK_IMG_TYPE_DETECT)
Exemplo n.º 5
0
 def testRead(self):
     """Test the read functionality."""
     img_info = test_lib.FileObjectImageInfo(self._file_object,
                                             self._file_size)
     self._testRead(img_info)
     img_info.close()
Exemplo n.º 6
0
 def testGetSize(self):
     """Test the get size functionality."""
     img_info = test_lib.FileObjectImageInfo(self._file_object,
                                             self._file_size)
     self._testGetSize(img_info)
     img_info.close()