summaryrefslogtreecommitdiff
path: root/oslo_db/tests/test_api.py
diff options
context:
space:
mode:
Diffstat (limited to 'oslo_db/tests/test_api.py')
-rw-r--r--oslo_db/tests/test_api.py8
1 files changed, 8 insertions, 0 deletions
diff --git a/oslo_db/tests/test_api.py b/oslo_db/tests/test_api.py
index 18dc586..c784afe 100644
--- a/oslo_db/tests/test_api.py
+++ b/oslo_db/tests/test_api.py
@@ -196,3 +196,11 @@ class DBRetryRequestCase(DBAPITestCase):
res = {'result': 0}
self.assertRaises(ValueError, some_method, res)
self.assertEqual(max_retries + 1, res['result'])
+
+ @mock.patch.object(DBAPI, 'api_class_call1')
+ @mock.patch.object(api, 'wrap_db_retry')
+ def test_mocked_methods_are_not_wrapped(self, mocked_wrap, mocked_method):
+ dbapi = api.DBAPI('oslo_db.tests.test_api')
+ dbapi.api_class_call1()
+
+ self.assertFalse(mocked_wrap.called)