mirror of
https://github.com/django/django.git
synced 2025-10-26 07:06:08 +00:00
Added a test for Model._meta._property_names.
This commit is contained in:
@@ -272,3 +272,8 @@ class ParentListTests(SimpleTestCase):
|
||||
self.assertEqual(FirstParent._meta.get_parent_list(), [CommonAncestor])
|
||||
self.assertEqual(SecondParent._meta.get_parent_list(), [CommonAncestor])
|
||||
self.assertEqual(Child._meta.get_parent_list(), [FirstParent, SecondParent, CommonAncestor])
|
||||
|
||||
|
||||
class PropertyNamesTests(SimpleTestCase):
|
||||
def test_person(self):
|
||||
self.assertEqual(AbstractPerson._meta._property_names, frozenset(['pk', 'test_property']))
|
||||
|
||||
Reference in New Issue
Block a user