def test_custom_querysets(self):

        self.assertTrue(isinstance(Person.objects.all(), CustomTreeQueryset))
        self.assertTrue(isinstance(Person.objects.all()[0].get_children(), CustomTreeQueryset))
        self.assertTrue(hasattr(Person.objects.none(), 'custom_method'))

        # Check that empty querysets get custom methods
        self.assertTrue(hasattr(Person.objects.all()[0].get_children().none(), 'custom_method'))

        self.assertEqual(
            type(Person.objects.all()),
            type(Person.objects.root_nodes())
        )
Serialize a dictionary into the specified content type.
dataset/ETHPy150Open django-mptt/django-mptt/tests/myapp/tests.py/ManagerTests.test_custom_querysets--crossover with--dataset/ETHPy150Open openstack/neutron/neutron/wsgi.py/Serializer.serialize