diff options
author | Lars Wirzenius <lars.wirzenius@codethink.co.uk> | 2013-11-04 16:20:06 +0000 |
---|---|---|
committer | Lars Wirzenius <lars.wirzenius@codethink.co.uk> | 2013-11-04 16:20:06 +0000 |
commit | 00246636d66961cf50fea902972e828ae0890f7b (patch) | |
tree | 0b264e98885e72cc9f036b138b802e372705551f /morphlib/remoteartifactcache_tests.py | |
parent | 6a1d074bfd30d5d24faf02725542ec87509c310a (diff) | |
parent | f92546e1179792512134ee51134db1107b7075e0 (diff) | |
download | morph-00246636d66961cf50fea902972e828ae0890f7b.tar.gz |
Merge branch 'liw/rac-escape-url'
Reviewed-by: Richard Ipsum
Reviewed-by: Pedro Alvarez
Diffstat (limited to 'morphlib/remoteartifactcache_tests.py')
-rw-r--r-- | morphlib/remoteartifactcache_tests.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/morphlib/remoteartifactcache_tests.py b/morphlib/remoteartifactcache_tests.py index 431731b9..dbb094a3 100644 --- a/morphlib/remoteartifactcache_tests.py +++ b/morphlib/remoteartifactcache_tests.py @@ -157,3 +157,8 @@ class RemoteArtifactCacheTests(unittest.TestCase): self.runtime_artifact.source, self.runtime_artifact.cache_key, 'non-existent-meta') + + def test_escapes_pluses_in_request_urls(self): + returned_url = self.cache._request_url('gtk+') + correct_url = '%s/1.0/artifacts?filename=gtk%%2B' % self.server_url + self.assertEqual(returned_url, correct_url) |