summaryrefslogtreecommitdiff
path: root/tests/unittests/test_ec2_util.py
diff options
context:
space:
mode:
authorScott Moser <smoser@ubuntu.com>2014-07-23 12:56:39 -0400
committerScott Moser <smoser@ubuntu.com>2014-07-23 12:56:39 -0400
commite921336a402423a702c74b757551bee10f3d771d (patch)
tree6d20c2cca580d99733173b2422cb2609f72a30b8 /tests/unittests/test_ec2_util.py
parente9f9c1e1cd47786b93491fd0f73467674c88828e (diff)
downloadvyos-cloud-init-e921336a402423a702c74b757551bee10f3d771d.tar.gz
vyos-cloud-init-e921336a402423a702c74b757551bee10f3d771d.zip
fix httpretty based test cases if http_proxy is set.
previously this would fail: http_proxy=http://foo.bar make test now it will pass. This works around a bug where httpretty is not able to patch http operations if http_proxy is set. https://github.com/gabrielfalcao/HTTPretty/issues/122
Diffstat (limited to 'tests/unittests/test_ec2_util.py')
-rw-r--r--tests/unittests/test_ec2_util.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/unittests/test_ec2_util.py b/tests/unittests/test_ec2_util.py
index dd87665d..aaec2694 100644
--- a/tests/unittests/test_ec2_util.py
+++ b/tests/unittests/test_ec2_util.py
@@ -6,7 +6,7 @@ from cloudinit import url_helper as uh
import httpretty as hp
-class TestEc2Util(helpers.TestCase):
+class TestEc2Util(helpers.HttprettyTestCase):
VERSION = 'latest'
@hp.activate