diff options
| author | Andrey Kurilin <akurilin@mirantis.com> | 2013-12-09 18:32:29 +0200 |
|---|---|---|
| committer | Andrey Kurilin <akurilin@mirantis.com> | 2013-12-09 18:50:12 +0200 |
| commit | 24340329cf0abb03533920b6e71014c3a59da482 (patch) | |
| tree | e6d82253294b22b2d47db1a25eab2bcbfa986486 /tests/v1 | |
| parent | cd7f2cbd79df54ea41d9a075d904efc82bdcb440 (diff) | |
| download | python-glanceclient-24340329cf0abb03533920b6e71014c3a59da482.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.
Related to blueprint common-client-library-2
Change-Id: I5addc38eb2e2dd0be91b566fda7c0d81787ffa75
Diffstat (limited to 'tests/v1')
| -rw-r--r-- | tests/v1/test_legacy_shell.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/tests/v1/test_legacy_shell.py b/tests/v1/test_legacy_shell.py index c939e5d..53adb45 100644 --- a/tests/v1/test_legacy_shell.py +++ b/tests/v1/test_legacy_shell.py @@ -27,7 +27,9 @@ class LegacyShellV1Test(testtools.TestCase): def test_print_image_formatted(self): class FakeClient(): - endpoint = 'http://is.invalid' + class FakeHTTPClient(): + endpoint = 'http://is.invalid' + http_client = FakeHTTPClient() class FakeImage(): id = 1 |
