'select_related() also of course applies to entire lists, not just
items. This test verifies the expected behavior with select_related.'

def test_list_with_select_related(self):

    world = Species.objects.all().select_related()
    families = [o.genus.family.name for o in world]
    self.assertEqual(sorted(families), ['Amanitacae', 'Drosophilidae', 'Fabaceae', 'Hominidae'])
    self.assertEqual(len(db.connection.queries), 1)
