summaryrefslogtreecommitdiff
path: root/tests/v1
diff options
context:
space:
mode:
authorAndrey Kurilin <akurilin@mirantis.com>2013-12-09 18:32:29 +0200
committerAndrey Kurilin <akurilin@mirantis.com>2013-12-09 18:50:12 +0200
commit24340329cf0abb03533920b6e71014c3a59da482 (patch)
treee6d82253294b22b2d47db1a25eab2bcbfa986486 /tests/v1
parentcd7f2cbd79df54ea41d9a075d904efc82bdcb440 (diff)
downloadpython-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.py4
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