def testOpenClosePathSpec(self):
    file_object = fake_file_io.FakeFile(
        self._resolver_context, self._FILE_DATA1)
    file_object.open(path_spec=self._path_spec1)

    self.assertEqual(file_object.get_size(), 116)
    file_object.close()

    # TODO: add a failing scenario.
Test the open and close functionality using a path specification.
dataset/ETHPy150Open log2timeline/dfvfs/tests/file_io/fake_file_io.py/FakeFileTest.testOpenClosePathSpec