@unittest.skipIf((2,) > sys.version_info, "file() was removed in Python 3")
    def test_file(self):
        '''Fake `file()` function is bound'''
        self.assertFalse(os.path.exists('/fake_file.txt'))
        with file('/fake_file.txt', 'w') as f:
            f.write("This test file was created using the file() function.\n")
        self.assertTrue(self.fs.Exists('/fake_file.txt'))
        with file('/fake_file.txt') as f:
            content = f.read()
        self.assertEqual(content,
                         'This test file was created using the file() function.\n')
dataset/ETHPy150Open jmcgeheeiv/pyfakefs/fake_filesystem_unittest_test.py/TestPyfakefsUnittest.test_file/swapped operands of `>`