def __repr__(self): return lang.obj_repr(self, 13, 14)
def test_position_args(self): repr_str = lang.obj_repr(self.test_obj, 1, 2, 3, "hello") self.assertEqual("TestClass(1, 2, 3, \'hello\')", repr_str)
def test_keyword_args(self): repr_str = lang.obj_repr(self.test_obj, a=1, b=2, c="hello") self.assertEqual("TestClass(a=1, b=2, c='hello')", repr_str)
def test_no_args(self): repr_str = lang.obj_repr(self.test_obj) self.assertEqual("TestClass()", repr_str)