def testGetFileEntryByPathSpec(self):
    file_system = cpio_file_system.CPIOFileSystem(self._resolver_context)
    self.assertIsNotNone(file_system)

    file_system.Open(self._cpio_path_spec)

    path_spec = cpio_path_spec.CPIOPathSpec(
        location=u'/syslog', parent=self._os_path_spec)
    file_entry = file_system.GetFileEntryByPathSpec(path_spec)

    self.assertIsNotNone(file_entry)
    self.assertEqual(file_entry.name, u'syslog')

    path_spec = cpio_path_spec.CPIOPathSpec(
        location=u'/bogus', parent=self._os_path_spec)
    file_entry = file_system.GetFileEntryByPathSpec(path_spec)

    self.assertIsNone(file_entry)

    file_system.Close()
The post-class cleanup method call C{addError} on the result with a
dataset/ETHPy150Open log2timeline/dfvfs/tests/vfs/cpio_file_system.py/CPIOFileSystemTest.testGetFileEntryByPathSpec--crossover with--dataset/ETHPy150Open kuri65536/python-for-android/python-modules/twisted/twisted/trial/test/test_util.py/JanitorTests.test_postClassCleanupWithPendingCallErrors