Explorar o código

Refs #21554 -- Added some assertions to a model_inheritance_regress test.

Richard Mitchell %!s(int64=11) %!d(string=hai) anos
pai
achega
7eb513ab0f
Modificáronse 1 ficheiros con 4 adicións e 1 borrados
  1. 4 1
      tests/model_inheritance_regress/tests.py

+ 4 - 1
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",