Permalink
Browse files

Adding MongoMock's DuplicateKeyError class.

  • Loading branch information...
1 parent b32bbbe commit ed5b6fb5a134d275a45c724349ecd232603591d1 Josh Finnie committed Nov 29, 2012
Showing with 1 addition and 2 deletions.
  1. +1 −2 lumin/tests/test_node.py
@@ -4,9 +4,8 @@
import mongomock
# Mongomock barfs on inserting keys differently than Pymongo. Expecting `DuplicateKeyError` not `AssertionError`
-# from pymongo.errors import DuplicateKeyError
+from mongomock import DuplicateKeyError
-from webob.exc import HTTPInternalServerError
import pyramid.testing

0 comments on commit ed5b6fb

Please sign in to comment.