Fixed broken test

This commit is contained in:
Ross Lawley 2012-08-21 17:29:38 +01:00
parent 1b80193aac
commit 999d4a7676

View File

@ -754,6 +754,7 @@ class DocumentTest(unittest.TestCase):
'indexes': [
'rank.title',
],
'allow_inheritance': False
}
Person.drop_collection()
@ -762,7 +763,7 @@ class DocumentTest(unittest.TestCase):
list(Person.objects)
info = Person.objects._collection.index_information()
info = [value['key'] for key, value in info.iteritems()]
self.assertTrue([('rank.title', '1')] in info)
self.assertTrue([('rank.title', 1)] in info)
def test_explicit_geo2d_index(self):
"""Ensure that geo2d indexes work when created via meta[indexes]