Mercurial > hgsubversion
comparison tests/test_urls.py @ 866:20e73b5ab6f7
test_util: merge load_svndump_fixture() into TestBase
author | Patrick Mezard <patrick@mezard.eu> |
---|---|
date | Thu, 19 Apr 2012 18:29:28 +0200 |
parents | 312b37bc5e20 |
children | d741f536f23a |
comparison
equal
deleted
inserted
replaced
865:04729f3a3d17 | 866:20e73b5ab6f7 |
---|---|
61 repo = svnrepo.svnremoterepo(ui, 'svn+https://joe@foo/bar') | 61 repo = svnrepo.svnremoterepo(ui, 'svn+https://joe@foo/bar') |
62 self.assertEqual(('https://foo/bar', 'bob', None), repo.svnauth) | 62 self.assertEqual(('https://foo/bar', 'bob', None), repo.svnauth) |
63 | 63 |
64 def test_quoting(self): | 64 def test_quoting(self): |
65 ui = self.ui() | 65 ui = self.ui() |
66 test_util.load_svndump_fixture(self.repo_path, | 66 repo_path = self.load_svndump('non_ascii_path_1.svndump') |
67 'non_ascii_path_1.svndump') | |
68 | 67 |
69 repo_url = test_util.fileurl(self.repo_path) | 68 repo_url = test_util.fileurl(repo_path) |
70 subdir = '/b\xC3\xB8b' | 69 subdir = '/b\xC3\xB8b' |
71 quoted_subdir = urllib.quote(subdir) | 70 quoted_subdir = urllib.quote(subdir) |
72 | 71 |
73 repo1 = svnrepo.svnremoterepo(ui, repo_url + subdir) | 72 repo1 = svnrepo.svnremoterepo(ui, repo_url + subdir) |
74 repo2 = svnrepo.svnremoterepo(ui, repo_url + quoted_subdir) | 73 repo2 = svnrepo.svnremoterepo(ui, repo_url + quoted_subdir) |