def test_proxy_get_real_instance_class(self):
        name = "Item1"
        nonproxychild = NonProxyChild.objects.create(name=name)

        pb = ProxyBase.objects.get(id=1)
        self.assertEqual(pb.get_real_instance_class(), NonProxyChild)
        self.assertEqual(pb.get_real_instance(), nonproxychild)
        self.assertEqual(pb.name, name)

        pbm = ProxyChild.objects.get(id=1)
        self.assertEqual(pbm.get_real_instance_class(), NonProxyChild)
        self.assertEqual(pbm.get_real_instance(), nonproxychild)
        self.assertEqual(pbm.name, name)
The call to ``get_real_instance()`` also checks whether the returned model is of the correct type.
dataset/ETHPy150Open chrisglass/django_polymorphic/polymorphic/tests.py/PolymorphicTests.test_proxy_get_real_instance_class