'Testing `select_related` on geographic models (see #7126).'

def test02_select_related(self):

    qs1 = City.objects.all()
    qs2 = City.objects.select_related()
    qs3 = City.objects.select_related('location')
    cities = (('Aurora', 'TX', (-97.516111), 33.058333), ('Roswell', 'NM', (-104.528056), 33.387222), ('Kecksburg', 'PA', (-79.460734), 40.18476))
    for qs in (qs1, qs2, qs3):
        for (ref, c) in zip(cities, qs):
            (nm, st, lon, lat) = ref
            self.assertEqual(nm, c.name)
            self.assertEqual(st, c.state)
            self.assertEqual(Point(lon, lat), c.location.point)
