def test_repr(self): p = sqlparse.parse('foo, bar, baz')[0] tst = "<IdentifierList 'foo, b...' at 0x" self.assertEqual(repr(p.tokens[0])[:len(tst)], tst)