pytent/pytentd — pull request #89 by yupeng820921 (2014-08-26 14:08:48+00:00)
Title: check both NotUniqueError and OperationError in tests

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.