comparison tests/test_urls.py @ 851:9ce00cb1d676

Merge alternate tunnel schemes.
author Augie Fackler <durin42@gmail.com>
date Sat, 25 Feb 2012 14:51:22 -0600
parents 312b37bc5e20
children 20e73b5ab6f7
comparison
equal deleted inserted replaced
850:d3bc067c0f72 851:9ce00cb1d676
27 (None, '123abc', 'svn+ssh://svn.testurl.com/repo'), 27 (None, '123abc', 'svn+ssh://svn.testurl.com/repo'),
28 parse_url('svn+ssh://:t3stpw@svn.testurl.com/repo', None, '123abc')) 28 parse_url('svn+ssh://:t3stpw@svn.testurl.com/repo', None, '123abc'))
29 29
30 def test_svnssh_preserve_user(self): 30 def test_svnssh_preserve_user(self):
31 self.assertEqual( 31 self.assertEqual(
32 ('user', 't3stpw', 'svn+ssh://user@svn.testurl.com/repo', ), 32 ('user', 't3stpw', 'svn+ssh://user@svn.testurl.com/repo',),
33 parse_url('svn+ssh://user:t3stpw@svn.testurl.com/repo')) 33 parse_url('svn+ssh://user:t3stpw@svn.testurl.com/repo'))
34 self.assertEqual( 34 self.assertEqual(
35 ('bob', '123abc', 'svn+ssh://bob@svn.testurl.com/repo', ), 35 ('bob', '123abc', 'svn+ssh://bob@svn.testurl.com/repo',),
36 parse_url('svn+ssh://user:t3stpw@svn.testurl.com/repo', 'bob', '123abc')) 36 parse_url('svn+ssh://user:t3stpw@svn.testurl.com/repo', 'bob', '123abc'))
37 self.assertEqual( 37 self.assertEqual(
38 ('user2', None, 'svn+ssh://user2@svn.testurl.com/repo', ), 38 ('user2', None, 'svn+ssh://user2@svn.testurl.com/repo',),
39 parse_url('svn+ssh://user2@svn.testurl.com/repo')) 39 parse_url('svn+ssh://user2@svn.testurl.com/repo'))
40 self.assertEqual( 40 self.assertEqual(
41 ('bob', None, 'svn+ssh://bob@svn.testurl.com/repo', ), 41 ('bob', None, 'svn+ssh://bob@svn.testurl.com/repo',),
42 parse_url('svn+ssh://user2@svn.testurl.com/repo', 'bob')) 42 parse_url('svn+ssh://user2@svn.testurl.com/repo', 'bob'))
43 43
44 def test_user_password_url(self): 44 def test_user_password_url(self):
45 self.assertEqual( 45 self.assertEqual(
46 ('joe', 't3stpw', 'https://svn.testurl.com/repo'), 46 ('joe', 't3stpw', 'https://svn.testurl.com/repo'),
73 repo1 = svnrepo.svnremoterepo(ui, repo_url + subdir) 73 repo1 = svnrepo.svnremoterepo(ui, repo_url + subdir)
74 repo2 = svnrepo.svnremoterepo(ui, repo_url + quoted_subdir) 74 repo2 = svnrepo.svnremoterepo(ui, repo_url + quoted_subdir)
75 self.assertEqual(repo1.svnurl, repo2.svnurl) 75 self.assertEqual(repo1.svnurl, repo2.svnurl)
76 76
77 def suite(): 77 def suite():
78 all = [unittest.TestLoader().loadTestsFromTestCase(TestSubversionUrls)] 78 all_tests = [unittest.TestLoader().loadTestsFromTestCase(TestSubversionUrls)]
79 return unittest.TestSuite(all) 79 return unittest.TestSuite(all_tests)