diff options
author | Richard Mitchell <richard.j.mitchell@gmail.com> | 2013-12-10 11:20:32 +0000 |
---|---|---|
committer | Tim Graham <timograham@gmail.com> | 2015-08-15 19:32:21 -0400 |
commit | 7eb513ab0f761fe88aa4d3579fdf8706741f2239 (patch) | |
tree | b5c9adf681382a98ec10e5705918a5f6c1657000 /tests/model_inheritance_regress | |
parent | dad8434d6ff5da10959672726dc9b397296d380b (diff) | |
download | django-7eb513ab0f761fe88aa4d3579fdf8706741f2239.tar.gz |
Refs #21554 -- Added some assertions to a model_inheritance_regress test.
Diffstat (limited to 'tests/model_inheritance_regress')
-rw-r--r-- | tests/model_inheritance_regress/tests.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/tests/model_inheritance_regress/tests.py b/tests/model_inheritance_regress/tests.py index 6d916bf6e4..e04fb18e94 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", |