'Ensure that indexes are created automatically for GeoPointFields.'

def test_indexes_2dsphere_embedded(self):

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