Mercurial > hgsubversion
diff tests/test_urls.py @ 392:35993ba9d119
urls: Make sure we preserve username in urls given to ssh.
author | Augie Fackler <durin42@gmail.com> |
---|---|
date | Sat, 06 Jun 2009 11:53:21 -0500 |
parents | 46e69be8e2c8 |
children | 3941d73c262e |
line wrap: on
line diff
--- a/tests/test_urls.py +++ b/tests/test_urls.py @@ -15,6 +15,14 @@ class TestSubversionUrls(test_util.TestB self.assertEqual((None, 't3stpw', 'svn+ssh://svn.testurl.com/repo'), parse_url('svn+ssh://:t3stpw@svn.testurl.com/repo')) + def test_svnssh_preserve_user(self): + self.assertEqual( + ('user', 't3stpw', 'svn+ssh://user@svn.testurl.com/repo', ), + parse_url('svn+ssh://user:t3stpw@svn.testurl.com/repo')) + self.assertEqual( + ('user2', None, 'svn+ssh://user2@svn.testurl.com/repo', ), + parse_url('svn+ssh://user2@svn.testurl.com/repo')) + def test_user_password_url(self): self.assertEqual(('joe', 't3stpw', 'https://svn.testurl.com/repo'), parse_url('https://joe:t3stpw@svn.testurl.com/repo'))