Exemplo n.º 1
0
    def testIntialize(self):
        """Test the __init__ function."""
        test_file_entry = file_entry.FileEntry(self._resolver_context,
                                               self._file_system,
                                               self._path_spec)

        self.assertIsNotNone(test_file_entry)
Exemplo n.º 2
0
 def testIntialize(self):
     """Tests the __init__ function."""
     with self.assertRaises(ValueError):
         file_entry.FileEntry(self._resolver_context, self._file_system,
                              self._path_spec)
Exemplo n.º 3
0
 def testChangeTime(self):
     """Test the change_time property."""
     test_file_entry = file_entry.FileEntry(self._resolver_context,
                                            self._file_system,
                                            self._path_spec)
     self.assertIsNone(test_file_entry.change_time)
Exemplo n.º 4
0
 def testAccessTime(self):
     """Test the access_time property."""
     test_file_entry = file_entry.FileEntry(self._resolver_context,
                                            self._file_system,
                                            self._path_spec)
     self.assertIsNone(test_file_entry.access_time)
Exemplo n.º 5
0
 def testModificationTime(self):
     """Test the modification_time property."""
     test_file_entry = file_entry.FileEntry(self._resolver_context,
                                            self._file_system,
                                            self._path_spec)
     self.assertIsNone(test_file_entry.modification_time)