'Testing the `centroid` GeoQuerySet method.'

@no_mysql
def test19_centroid(self):

    qs = State.objects.exclude(poly__isnull=True).centroid()
    if oracle:
        tol = 0.1
    elif spatialite:
        tol = 1e-06
    else:
        tol = 1e-09
    for s in qs:
        self.assertEqual(True, s.poly.centroid.equals_exact(s.centroid, tol))
