'Test retry_until_ok retries on PyMongo OperationFailure.'

def test_retry_until_ok_operation_failure(self):

    self.assertTrue(retry_until_ok(err_func, errors.OperationFailure('')))
    self.assertEqual(err_func.counter, 3)
