comparison 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
comparison
equal deleted inserted replaced
391:dbdcb97b38af 392:35993ba9d119
13 13
14 def test_password_url(self): 14 def test_password_url(self):
15 self.assertEqual((None, 't3stpw', 'svn+ssh://svn.testurl.com/repo'), 15 self.assertEqual((None, 't3stpw', 'svn+ssh://svn.testurl.com/repo'),
16 parse_url('svn+ssh://:t3stpw@svn.testurl.com/repo')) 16 parse_url('svn+ssh://:t3stpw@svn.testurl.com/repo'))
17 17
18 def test_svnssh_preserve_user(self):
19 self.assertEqual(
20 ('user', 't3stpw', 'svn+ssh://user@svn.testurl.com/repo', ),
21 parse_url('svn+ssh://user:t3stpw@svn.testurl.com/repo'))
22 self.assertEqual(
23 ('user2', None, 'svn+ssh://user2@svn.testurl.com/repo', ),
24 parse_url('svn+ssh://user2@svn.testurl.com/repo'))
25
18 def test_user_password_url(self): 26 def test_user_password_url(self):
19 self.assertEqual(('joe', 't3stpw', 'https://svn.testurl.com/repo'), 27 self.assertEqual(('joe', 't3stpw', 'https://svn.testurl.com/repo'),
20 parse_url('https://joe:t3stpw@svn.testurl.com/repo')) 28 parse_url('https://joe:t3stpw@svn.testurl.com/repo'))
21 29
22 30