def setUp(self):
    self._resolver_context = context.Context()
    self._file_system = fake_file_system.FakeFileSystem(self._resolver_context)

    self._file_system.AddFileEntry(
        u'/test_data/testdir_fake',
        file_entry_type=definitions.FILE_ENTRY_TYPE_DIRECTORY)
    self._file_system.AddFileEntry(
        u'/test_data/testdir_fake/file1.txt', file_data=b'FILE1')
    self._file_system.AddFileEntry(
        u'/test_data/testdir_fake/file2.txt', file_data=b'FILE2')
    self._file_system.AddFileEntry(
        u'/test_data/testdir_fake/file3.txt', file_data=b'FILE3')
    self._file_system.AddFileEntry(
        u'/test_data/testdir_fake/file4.txt', file_data=b'FILE4')
    self._file_system.AddFileEntry(
        u'/test_data/testdir_fake/file5.txt', file_data=b'FILE5')

    self._file_system.AddFileEntry(
        u'/test_data/testdir_fake/link1.txt',
        file_entry_type=definitions.FILE_ENTRY_TYPE_LINK,
        link_data=u'/test_data/testdir_fake/file1.txt')

    self._test_file = u'/test_data/testdir_fake'

    self._fake_path_spec = fake_path_spec.FakePathSpec(location=u'/')
    self._file_system.Open(self._fake_path_spec)
Sets up the needed objects used throughout the test.
dataset/ETHPy150Open log2timeline/dfvfs/tests/vfs/fake_file_entry.py/FakeFileEntryTest.setUp