'Testing `extent` on a table with a single point. See #11827.'

@no_spatialite
@no_mysql
def test_extent(self):

    pnt = City.objects.get(name=u'Pueblo').point
    ref_ext = (pnt.x, pnt.y, pnt.x, pnt.y)
    extent = City.objects.filter(name=u'Pueblo').extent()
    for (ref_val, val) in zip(ref_ext, extent):
        self.assertAlmostEqual(ref_val, val, 4)
