コード例 #1
0
 def test_lp_branch_shortcut(self):
     service = LaunchpadService()
     factory = FakeResolveFactory(
         self, 'foo',
         dict(urls=['http://bazaar.launchpad.net/~foo/bar/baz']))
     web_url = service.get_web_url_from_branch_url('lp:foo', factory)
     self.assertEqual('https://code.launchpad.net/~foo/bar/baz', web_url)
コード例 #2
0
 def test_lp_branch_url(self):
     service = LaunchpadService(lp_instance='production')
     factory = FakeResolveFactory(
         self, '~foo/bar/baz',
         dict(urls=['http://bazaar.launchpad.net/~foo/bar/baz']))
     web_url = service.get_web_url_from_branch_url('lp:~foo/bar/baz',
                                                   factory)
     self.assertEqual('https://code.launchpad.net/~foo/bar/baz', web_url)
コード例 #3
0
 def test_lp_branch_shortcut(self):
     service = LaunchpadService()
     factory = FakeResolveFactory(
         self, 'foo',
         dict(urls=['http://bazaar.launchpad.net/~foo/bar/baz']))
     web_url = service.get_web_url_from_branch_url('lp:foo', factory)
     self.assertEqual(
         'https://code.launchpad.net/~foo/bar/baz', web_url)
コード例 #4
0
 def test_lp_branch_url(self):
     service = LaunchpadService(lp_instance='production')
     factory = FakeResolveFactory(
         self, '~foo/bar/baz',
         dict(urls=['http://bazaar.launchpad.net/~foo/bar/baz']))
     web_url = service.get_web_url_from_branch_url(
         'lp:~foo/bar/baz', factory)
     self.assertEqual(
         'https://code.launchpad.net/~foo/bar/baz', web_url)
コード例 #5
0
 def test_sftp_branch_url(self):
     service = LaunchpadService(lp_instance='production')
     web_url = service.get_web_url_from_branch_url(
         'sftp://bazaar.launchpad.net/~foo/bar/baz')
     self.assertEqual('https://code.launchpad.net/~foo/bar/baz', web_url)
コード例 #6
0
 def test_default_bzr_ssh_url(self):
     service = LaunchpadService()
     web_url = service.get_web_url_from_branch_url(
         'bzr+ssh://bazaar.launchpad.net/~foo/bar/baz')
     self.assertEqual('https://code.launchpad.net/~foo/bar/baz', web_url)
コード例 #7
0
 def test_demo_url(self):
     service = LaunchpadService(lp_instance='demo')
     web_url = service.get_web_url_from_branch_url(
         'bzr+ssh://bazaar.launchpad.net/~foo/bar/baz')
     self.assertEqual('https://code.demo.launchpad.net/~foo/bar/baz',
                      web_url)
コード例 #8
0
 def test_product_bzr_ssh_url(self):
     service = LaunchpadService(lp_instance='production')
     web_url = service.get_web_url_from_branch_url(
         'bzr+ssh://bazaar.launchpad.net/~foo/bar/baz')
     self.assertEqual(
         'https://code.launchpad.net/~foo/bar/baz', web_url)
コード例 #9
0
 def test_default_bzr_ssh_url(self):
     service = LaunchpadService()
     web_url = service.get_web_url_from_branch_url(
         'bzr+ssh://bazaar.launchpad.net/~foo/bar/baz')
     self.assertEqual(
         'https://code.launchpad.net/~foo/bar/baz', web_url)
コード例 #10
0
 def test_demo_url(self):
     service = LaunchpadService(lp_instance='demo')
     web_url = service.get_web_url_from_branch_url(
         'bzr+ssh://bazaar.launchpad.net/~foo/bar/baz')
     self.assertEqual(
         'https://code.demo.launchpad.net/~foo/bar/baz', web_url)