comparison tests/test_urls.py @ 475:15443c592f7a

Remove the svn+ from svn+https urls before calling the Subversion API. This was already being done for svn+http urls.
author David Stanek <dstanek@dstanek.com>
date Mon, 20 Jul 2009 16:00:37 -0400
parents 5567af673f83
children 2cc1342d4476
comparison
equal deleted inserted replaced
474:63cb630d667d 475:15443c592f7a
54 self.assertEqual('svn+ssh://bob@foo/bar', repo.svnurl) 54 self.assertEqual('svn+ssh://bob@foo/bar', repo.svnurl)
55 55
56 repo = svnrepo.svnremoterepo(ui, 'svn+http://joe@foo/bar') 56 repo = svnrepo.svnremoterepo(ui, 'svn+http://joe@foo/bar')
57 self.assertEqual(('http://foo/bar', 'bob', None), repo.svnauth) 57 self.assertEqual(('http://foo/bar', 'bob', None), repo.svnauth)
58 58
59 repo = svnrepo.svnremoterepo(ui, 'svn+https://joe@foo/bar')
60 self.assertEqual(('https://foo/bar', 'bob', None), repo.svnauth)
61
59 def suite(): 62 def suite():
60 all = [unittest.TestLoader().loadTestsFromTestCase(TestSubversionUrls)] 63 all = [unittest.TestLoader().loadTestsFromTestCase(TestSubversionUrls)]
61 return unittest.TestSuite(all) 64 return unittest.TestSuite(all)