diff --git a/tests/document/indexes.py b/tests/document/indexes.py index f9f68e57..dcc71e5b 100644 --- a/tests/document/indexes.py +++ b/tests/document/indexes.py @@ -324,7 +324,7 @@ class IndexesTest(unittest.TestCase): location = DictField() name = StringField() - Place.ensure_index({'fields': (')location.point', 'name')}, bucketSize=10) + 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)