'Ensure that geohaystack indexes can be created'

def test_create_geohaystack_index(self):

    class Place(Document, ):
        location = DictField()
        name = StringField()
    Place.create_index({'fields': (')location.point', 'name')}, bucketSize=10)
    info = Place._get_collection().index_information()
    info = [value['key'] for (key, value) in info.iteritems()]
    self.assertTrue(([('location.point', 'geoHaystack'), ('name', 1)] in info))
