'Testing the `extent` GeoQuerySet method.'

@no_mysql
@no_spatialite
def test_extent(self):

    expected = ((-96.8016128540039), 29.7633724212646, (-95.3631439208984), 32.78205871582)
    qs = City.objects.filter(name__in=('Houston', 'Dallas'))
    extent = qs.extent()
    for (val, exp) in zip(extent, expected):
        self.assertAlmostEqual(exp, val, 4)
