def setUp(self):
    self._resolver_context = context.Context()
    test_file = os.path.join(u'test_data', u'syslog.tar')
    self._os_path_spec = os_path_spec.OSPathSpec(location=test_file)
    self._tar_path_spec = tar_path_spec.TARPathSpec(
        location=u'/syslog', parent=self._os_path_spec)

    self._file_system = tar_file_system.TARFileSystem(self._resolver_context)
    self._file_system.Open(self._tar_path_spec)
Sets up the needed objects used throughout the test.
dataset/ETHPy150Open log2timeline/dfvfs/tests/vfs/tar_file_entry.py/TARFileEntryTest.setUp