mirror of
https://github.com/django/django.git
synced 2025-12-09 19:08:06 +00:00
Refs #21554 -- Added some assertions to a model_inheritance_regress test.
This commit is contained in:
parent
dad8434d6f
commit
7eb513ab0f
1 changed files with 4 additions and 1 deletions
|
|
@ -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",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue