diff options
author | Diana Clarke <diana.joan.clarke@gmail.com> | 2016-01-14 21:26:37 -0500 |
---|---|---|
committer | Diana Clarke <diana.joan.clarke@gmail.com> | 2016-01-30 17:49:03 -0500 |
commit | edd1b9bd2f8a4192696835df7bc51ffa66ff6e8f (patch) | |
tree | e5bf288e828ecaf6750cb6363ddd550b3f1ba4f1 /nova/tests/unit/test_crypto.py | |
parent | 5a2d1543f089043e5b6eb681915c61dabb4e6a49 (diff) | |
download | nova-edd1b9bd2f8a4192696835df7bc51ffa66ff6e8f.tar.gz |
Replace stubs.Set with stub_out (db)
As part of the ongoing effort to stop using mox, start replacing
the stubs.Set calls with stub_out.
Limit the scope of this patch to the ~400 db stubs.
Part of bp:remove-mox
Change-Id: I449726ede61a18d2c504cf370bebc2b3291fcb04
Diffstat (limited to 'nova/tests/unit/test_crypto.py')
-rw-r--r-- | nova/tests/unit/test_crypto.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/nova/tests/unit/test_crypto.py b/nova/tests/unit/test_crypto.py index 09e77f4329..214f3c8ed4 100644 --- a/nova/tests/unit/test_crypto.py +++ b/nova/tests/unit/test_crypto.py @@ -107,7 +107,7 @@ class RevokeCertsTest(test.TestCase): "file_name": file_name}] self.stub_out('nova.db.certificate_get_all_by_user_and_project', - mock_certificate_get_all_by_user_and_project) + mock_certificate_get_all_by_user_and_project) crypto.revoke_certs_by_user_and_project(user_id, project_id) @@ -125,7 +125,7 @@ class RevokeCertsTest(test.TestCase): "file_name": file_name}] self.stub_out('nova.db.certificate_get_all_by_user', - mock_certificate_get_all_by_user) + mock_certificate_get_all_by_user) crypto.revoke_certs_by_user(user_id) mock_revoke.assert_called_once_with(project_id, mock.ANY) @@ -142,7 +142,7 @@ class RevokeCertsTest(test.TestCase): "file_name": file_name}] self.stub_out('nova.db.certificate_get_all_by_project', - mock_certificate_get_all_by_project) + mock_certificate_get_all_by_project) crypto.revoke_certs_by_project(project_id) mock_revoke.assert_called_once_with(project_id, mock.ANY) |