Пример #1
0
    def testSize(self):
        """Test the size property."""
        file_entry = fvde_file_entry.FVDEFileEntry(self._resolver_context,
                                                   self._file_system,
                                                   self._fvde_path_spec)

        self.assertIsNotNone(file_entry)
        self.assertEqual(file_entry.size, 167772160)
Пример #2
0
  def GetFileEntryByPathSpec(self, path_spec):
    """Retrieves a file entry for a path specification.

    Args:
      path_spec (PathSpec): path specification.

    Returns:
      FVDEFileEntry: file entry or None.
    """
    return fvde_file_entry.FVDEFileEntry(
        self._resolver_context, self, path_spec, is_root=True, is_virtual=True)
Пример #3
0
 def testIntialize(self):
   """Test the __init__ function."""
   file_entry = fvde_file_entry.FVDEFileEntry(
       self._resolver_context, self._file_system, self._fvde_path_spec)
   self.assertIsNotNone(file_entry)