pytent / pytentd

Python implementation of the tent.io server protocol
http://pytent.github.com/pytentd/
Other
23 stars 4 forks source link

check both NotUniqueError and OperationError in tests #89

Closed yupeng0921 closed 10 years ago

yupeng0921 commented 10 years ago

Seems mongoengine changed its exception type, when try to save a duplicate key, it will raise OperationError, not NotUniqueError, so check both of the two exceptions, or py.test will fail.