summaryrefslogtreecommitdiffstats
path: root/nova/tests
diff options
context:
space:
mode:
authorWilliam Wolf <throughnothing@gmail.com>2011-09-19 11:26:14 -0400
committerWilliam Wolf <throughnothing@gmail.com>2011-09-19 11:26:14 -0400
commit5feb413f7698633c6a598ec2899772269a96b690 (patch)
treecfb25bc23c3756b883ee7c9b6fc0aa0a9d30b8c2 /nova/tests
parent1e094377ada74202bfc4d3c03f6b7f747ad570d7 (diff)
make our own function instead of using urllib.urlencode since we apparently don't suppor urlencoded strings yet
Diffstat (limited to 'nova/tests')
-rw-r--r--nova/tests/api/openstack/test_servers.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/nova/tests/api/openstack/test_servers.py b/nova/tests/api/openstack/test_servers.py
index bf8bbb2b8..160335d80 100644
--- a/nova/tests/api/openstack/test_servers.py
+++ b/nova/tests/api/openstack/test_servers.py
@@ -1188,7 +1188,7 @@ class ServersTest(test.TestCase):
self.assertTrue('limit' in res.body)
def test_get_server_details_with_limit_and_other_params_v1_1(self):
- req = webob.Request.blank('/v1.1/fake/servers/detail?limit=3&blah=2')
+ req = webob.Request.blank('/v1.1/fake/servers/detail?limit=3&blah=2:t')
res = req.get_response(fakes.wsgi_app())
servers = json.loads(res.body)['servers']
servers_links = json.loads(res.body)['servers_links']
@@ -1197,8 +1197,8 @@ class ServersTest(test.TestCase):
qs = urlparse.urlparse(servers_links[0]['href']).query
params = urlparse.parse_qs(qs)
- self.assertDictMatch({'limit': ['3'], 'blah': ['2'], 'marker': ['2']},
- params)
+ self.assertDictMatch({'limit': ['3'], 'blah': ['2:t'],
+ 'marker': ['2']}, params)
req = webob.Request.blank('/v1.1/fake/servers/detail?limit=aaa')
res = req.get_response(fakes.wsgi_app())