mirror of
https://github.com/Hopiu/django-model-utils.git
synced 2026-03-29 01:30:23 +00:00
Add test that may not do anything.
I'm not sure this test is actually useful: it's designed to show the interaction of select_subclasses and instance_of, but I don't think it adds much value.
This commit is contained in:
parent
02e19e45b4
commit
8fa34bc609
1 changed files with 7 additions and 0 deletions
|
|
@ -1036,7 +1036,14 @@ class InheritanceManagerUsingModelsTests(TestCase):
|
|||
results = InheritanceManagerTestParent.objects.instance_of(InheritanceManagerTestChild3, InheritanceManagerTestGrandChild1).select_subclasses()
|
||||
|
||||
self.assertEqual(set([child3, grandchild1]), set(results))
|
||||
|
||||
def test_select_subclasses_interaction_with_instance_of(self):
|
||||
child3 = InheritanceManagerTestChild3.objects.create()
|
||||
|
||||
results = InheritanceManagerTestParent.objects.select_subclasses(InheritanceManagerTestChild1).instance_of(InheritanceManagerTestChild3)
|
||||
|
||||
self.assertEqual(set([child3]), set(results))
|
||||
|
||||
|
||||
class InheritanceManagerRelatedTests(InheritanceManagerTests):
|
||||
def setUp(self):
|
||||
|
|
|
|||
Loading…
Reference in a new issue