def test_model_change(self): from yait.models import Change c = Change(issue_id=2) c.id = 1 self.assertEqual(repr(c), '<Change 1 (issue=2)>')