Пример #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)
Пример #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)
Пример #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)
Пример #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)
Пример #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)