'Testing the `num_geom` GeoQuerySet method.'

@no_mysql
def test23_numgeom(self):

    for c in Country.objects.num_geom():
        self.assertEqual(2, c.num_geom)
    for c in City.objects.filter(point__isnull=False).num_geom():
        if postgis:
            self.assertEqual(None, c.num_geom)
        else:
            self.assertEqual(1, c.num_geom)
