From 7eb513ab0f761fe88aa4d3579fdf8706741f2239 Mon Sep 17 00:00:00 2001 From: Richard Mitchell Date: Tue, 10 Dec 2013 11:20:32 +0000 Subject: [PATCH] Refs #21554 -- Added some assertions to a model_inheritance_regress test. --- tests/model_inheritance_regress/tests.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/tests/model_inheritance_regress/tests.py b/tests/model_inheritance_regress/tests.py index 6d916bf6e4c..e04fb18e94e 100644 --- a/tests/model_inheritance_regress/tests.py +++ b/tests/model_inheritance_regress/tests.py @@ -461,7 +461,10 @@ class ModelInheritanceTest(TestCase): name='John Doe', title='X', state='Y' ) - Senator.objects.get(pk=senator.pk) + senator = Senator.objects.get(pk=senator.pk) + self.assertEqual(senator.name, 'John Doe') + self.assertEqual(senator.title, 'X') + self.assertEqual(senator.state, 'Y') def test_inheritance_resolve_columns(self): Restaurant.objects.create(name='Bobs Cafe', address="Somewhere",