'Testing the `difference`, `intersection`, `sym_difference`, and `union` GeoQuerySet methods.'

@no_mysql
def test25_geoset(self):

    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), c.union)
