diff options
author | Ben Brown <ben.brown@codethink.co.uk> | 2013-12-11 18:00:57 +0000 |
---|---|---|
committer | Ben Brown <ben.brown@codethink.co.uk> | 2013-12-11 18:00:57 +0000 |
commit | a127ae932b5941f4376f019e5983fcfadfcc068b (patch) | |
tree | 2291342e486b6dd5872cc4c5045bf78c073eca1c /morphlib/remoterepocache_tests.py | |
parent | aa9ae353c5143be9a922e819e0112f63e7034811 (diff) | |
parent | e22e165e4982053904b3606110d36aa3d757c2a5 (diff) | |
download | morph-a127ae932b5941f4376f019e5983fcfadfcc068b.tar.gz |
Merge branch 'benbrown/S9823/petrify-no-update'
Diffstat (limited to 'morphlib/remoterepocache_tests.py')
-rw-r--r-- | morphlib/remoterepocache_tests.py | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/morphlib/remoterepocache_tests.py b/morphlib/remoterepocache_tests.py index 5ef61f48..22c89bf9 100644 --- a/morphlib/remoterepocache_tests.py +++ b/morphlib/remoterepocache_tests.py @@ -1,4 +1,4 @@ -# Copyright (C) 2012 Codethink Limited +# Copyright (C) 2012-2013 Codethink Limited # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by @@ -17,22 +17,23 @@ import json import unittest +import urllib import morphlib class RemoteRepoCacheTests(unittest.TestCase): def _resolve_ref_for_repo_url(self, repo_url, ref): - return self.sha1s[repo_url][ref] + return self.sha1s[urllib.unquote(repo_url)][ref] def _cat_file_for_repo_url(self, repo_url, sha1, filename): - return self.files[repo_url][sha1][filename] + return self.files[urllib.unquote(repo_url)][sha1][filename] def _ls_tree_for_repo_url(self, repo_url, sha1): return json.dumps({ 'repo': repo_url, 'ref': sha1, - 'tree': self.files[repo_url][sha1] + 'tree': self.files[urllib.unquote(repo_url)][sha1] }) def setUp(self): |