def testFileEntryExistsByPathSpec(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)
    self.assertTrue(file_system.FileEntryExistsByPathSpec(path_spec))

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

    file_system.Close()
Test the file entry exists by path specification functionality.
dataset/ETHPy150Open log2timeline/dfvfs/tests/vfs/cpio_file_system.py/CPIOFileSystemTest.testFileEntryExistsByPathSpec