'Ensure that indexes are created automatically for GeoPointFields.'

def test_indexes_2dsphere(self):

    class Event(Document, ):
        title = StringField()
        point = PointField()
        line = LineStringField()
        polygon = PolygonField()
    geo_indicies = Event._geo_indices()
    self.assertTrue(({'fields': [('line', '2dsphere')]} in geo_indicies))
    self.assertTrue(({'fields': [('polygon', '2dsphere')]} in geo_indicies))
    self.assertTrue(({'fields': [('point', '2dsphere')]} in geo_indicies))
