Skip to content

Commit

Permalink
update test to keep up w/ change to error message
Browse files Browse the repository at this point in the history
  • Loading branch information
Mike Dirolf committed Feb 12, 2009
1 parent 8f56e2c commit 1778892
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/test_collection.py
Original file line number Diff line number Diff line change
Expand Up @@ -243,7 +243,7 @@ def test_safe_insert(self):
a = {"hello": "world"}
db.test.insert(a)
db.test.insert(a)
self.assertEqual(db.error()["err"], "duplicate key error")
self.assertEqual(db.error()["err"], "E11000 duplicate key error")

self.assertRaises(OperationFailure, db.test.insert, a, safe=True)

Expand Down

0 comments on commit 1778892

Please sign in to comment.