'Ensure that indexes are created automatically for GeoPointFields.'

def test_indexes_geopoint(self):

    class Event(Document, ):
        title = StringField()
        location = GeoPointField()
    geo_indicies = Event._geo_indices()
    self.assertEqual(geo_indicies, [{'fields': [('location', '2d')]}])
