diff options
| author | Andrey Kurilin <akurilin@mirantis.com> | 2013-12-09 17:27:15 +0200 |
|---|---|---|
| committer | Andrey Kurilin <akurilin@mirantis.com> | 2014-01-15 10:13:55 +0200 |
| commit | 9550f7cc58d907eddd6ffc6c26b939bcccd8d05a (patch) | |
| tree | 89f297914f0ba1a2acb9af26fc10848b4ca5d2f5 /ceilometerclient/tests/test_shell.py | |
| parent | c74231e74473cdfc8037731b6e9beb539d491814 (diff) | |
| download | python-ceilometerclient-9550f7cc58d907eddd6ffc6c26b939bcccd8d05a.tar.gz | |
Replace inheritance hierarchy with composition
In the process of unification of the clients code we should use
composition to allow easier replacement with common HTTPClient.
bp common-client-library-2
Change-Id: I98d2bc89d5b1a36c30771923cd1cda7925e563d5
Diffstat (limited to 'ceilometerclient/tests/test_shell.py')
| -rw-r--r-- | ceilometerclient/tests/test_shell.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ceilometerclient/tests/test_shell.py b/ceilometerclient/tests/test_shell.py index c71e10b..aba7d18 100644 --- a/ceilometerclient/tests/test_shell.py +++ b/ceilometerclient/tests/test_shell.py @@ -44,8 +44,8 @@ class ShellTest(utils.BaseTestCase): super(ShellTest, self).setUp() @mock.patch.object(ksclient, 'Client') - @mock.patch.object(v1client.Client, 'json_request') - @mock.patch.object(v1client.Client, 'raw_request') + @mock.patch.object(v1client.http.HTTPClient, 'json_request') + @mock.patch.object(v1client.http.HTTPClient, 'raw_request') def shell(self, argstr, mock_ksclient, mock_json, mock_raw): orig = sys.stdout try: |
