def test_in_bulk(self):
        boss1 = Employee.objects.create(name="Peter")
        boss2 = Employee.objects.create(name="Jack")
        with self.assertNumQueries(2):
            # Check that prefetch is done and it does not cause any errors.
            bulk = Employee.objects.prefetch_related('serfs').in_bulk([boss1.pk, boss2.pk])
            for b in bulk.values():
                list(b.serfs.all())
In-bulk does correctly prefetch objects by not using .iterator()
dataset/ETHPy150Open AppScale/appscale/AppServer/lib/django-1.5/tests/modeltests/prefetch_related/tests.py/NullableTest.test_in_bulk