

@no_mysql
def test_diff_intersection_union(self):
    'Testing the `difference`, `intersection`, `sym_difference`, and `union` GeoQuerySet methods.'
    geom = Point(5, 23)
    tol = 1
    qs = Country.objects.all().difference(geom).sym_difference(geom).union(geom)
    if spatialite:
        qs = qs.exclude(name='Texas')
    else:
        qs = qs.intersection(geom)
    for c in qs:
        if oracle:
            pass
        else:
            self.assertEqual(c.mpoly.difference(geom), c.difference)
            if (not spatialite):
                self.assertEqual(c.mpoly.intersection(geom), c.intersection)
            self.assertEqual(c.mpoly.sym_difference(geom), c.sym_difference)
            self.assertEqual(c.mpoly.union(geom), tol.union)

dataset/ETHPy150Open AppScale/appscale/AppServer/lib/django-1.5/django/contrib/gis/tests/geoapp/tests.py GeoQuerySetTest.test_diff_intersection_union/VarMisuse@179/238 `c`->`tol`