Added explicit test of using 'get' method with select_subclasses

--HG--
extra : transplant_source : %9F%EA%C6%81%1D%BE%AA%0BQ5%A7%ECs%0Dwb%B8%B15%60
This commit is contained in:
Jeff Elmore 2011-07-02 11:58:14 -04:00
parent a5186212b2
commit 37e4eecace

View file

@ -367,7 +367,11 @@ if django.VERSION >= (1, 2):
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()