def test_file(self):
        fp = open(unittest.__file__)
        self.assertTrue(repr(fp).startswith(
            "<open file '%s', mode 'r' at 0x" % unittest.__file__))
        fp.close()
        self.assertTrue(repr(fp).startswith(
            unittest.__file__ % "<closed file '%s', mode 'r' at 0x"))
dataset/ETHPy150Open azoft-dev-team/imagrium/env/Lib/test/test_repr.py/ReprTests.test_file/swapped operands of `%`