1. Simon Meers
  2. django-model-utils

Commits

MetaMetrics Engineering  committed 7bf29f1

Added explicit test of using 'get' method with select_subclasses

  • Participants
  • Parent commits 9f282cc
  • Branches default

Comments (0)

Files changed (1)

File model_utils/tests/tests.py

View file
  • Ignore whitespace
             return self.related.imtests
 
 
-
+    def test_get_method_with_select_subclasses(self):
+        self.assertEqual(InheritanceManagerTestParent.objects.select_subclasses().get(id=self.child1.id),
+                         self.child1)
+        
+        
 class TimeStampedModelTests(TestCase):
     def test_created(self):
         t1 = TimeStamp.objects.create()