コード例 #1
0
ファイル: file_entry.py プロジェクト: tincho9/dfvfs
    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
ファイル: file_entry.py プロジェクト: tincho9/dfvfs
 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
ファイル: file_entry.py プロジェクト: tincho9/dfvfs
 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
ファイル: file_entry.py プロジェクト: tincho9/dfvfs
 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)