Fix authentication error in test_authenticate_multiple for MongoDB 2.2 sharded.

This commit is contained in:
Luke Lovett 2015-06-25 14:08:37 -07:00
parent c226b4fb93
commit 6a0d85451e

View File

@ -524,7 +524,7 @@ class TestDatabase(IntegrationTest):
# Admin read-only user should be able to query any db,
# but not write.
admin_db.authenticate('ro-admin', 'pass')
self.assertEqual(0, other_db.test.count())
self.assertEqual(None, other_db.test.find_one())
self.assertRaises(OperationFailure,
other_db.test.insert_one, {})