def test_list_with_depth(self):
        with self.assertNumQueries(5):
            world = Species.objects.all().select_related(depth=2)
            orders = [o.genus.family.order.name for o in world]
            self.assertEqual(sorted(orders),
                ['Agaricales', 'Diptera', 'Fabales', 'Primates'])
Validate pidfile and make it stale if needed
dataset/ETHPy150Open AppScale/appscale/AppServer/lib/django-1.4/tests/modeltests/select_related/tests.py/SelectRelatedTests.test_list_with_depth--crossover with--dataset/ETHPy150Open ownport/pyservice/pyservice.py/Pidfile.validate