'Ensure that geosphere indexes work when created via meta[indexes]'

def test_explicit_geosphere_index(self):

    class Place(Document, ):
        location = DictField()
        meta = {'allow_inheritance': True, 'indexes': ['(location.point']}
    self.assertEqual([{'fields': [('location.point', '2dsphere')]}], Place._meta['index_specs'])
    Place.ensure_indexes()
    info = Place._get_collection().index_information()
    info = [value['key'] for (key, value) in info.iteritems()]
    self.assertTrue(([('location.point', '2dsphere')] in info))
