'Testing the `perimeter` GeoQuerySet method.'

@no_spatialite
def test08_perimeter(self):

    perim_m = [18404.3550889361, 15627.2108551001, 20632.5588368978, 17094.5996143697]
    if oracle:
        tol = 2
    else:
        tol = 7
    for (i, z) in enumerate(SouthTexasZipcode.objects.perimeter()):
        self.assertAlmostEqual(perim_m[i], z.perimeter.m, tol)
    for (i, c) in enumerate(SouthTexasCity.objects.perimeter(model_att='perim')):
        self.assertEqual(0, c.perim.m)
