comparison tests/test_urls.py @ 699:181ec1929b2a

tests_urls: activate a test that was previously overlooked
author Dan Villiom Podlaski Christiansen <danchr@gmail.com>
date Tue, 14 Sep 2010 19:24:55 +0200
parents 2cc1342d4476
children db56e65906f4
comparison
equal deleted inserted replaced
698:59860a15b617 699:181ec1929b2a
44 parse_url('https://joe:t3stpw@svn.testurl.com/repo')) 44 parse_url('https://joe:t3stpw@svn.testurl.com/repo'))
45 self.assertEqual( 45 self.assertEqual(
46 ('bob', '123abc', 'https://svn.testurl.com/repo'), 46 ('bob', '123abc', 'https://svn.testurl.com/repo'),
47 parse_url('https://joe:t3stpw@svn.testurl.com/repo', 'bob', '123abc')) 47 parse_url('https://joe:t3stpw@svn.testurl.com/repo', 'bob', '123abc'))
48 48
49 class TestSvnRepo(test_util.TestBase):
50 def test_url_rewriting(self): 49 def test_url_rewriting(self):
51 ui = test_util.ui.ui() 50 ui = test_util.ui.ui()
52 ui.setconfig('hgsubversion', 'username', 'bob') 51 ui.setconfig('hgsubversion', 'username', 'bob')
53 repo = svnrepo.svnremoterepo(ui, 'svn+ssh://joe@foo/bar') 52 repo = svnrepo.svnremoterepo(ui, 'svn+ssh://joe@foo/bar')
54 self.assertEqual('svn+ssh://bob@foo/bar', repo.svnurl) 53 self.assertEqual('svn+ssh://bob@foo/bar', repo.svnurl)