'Ensure that indexes are created automatically for GeoPointFields on
embedded documents.'

def test_geopoint_embedded_indexes(self):

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