~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/plugins/launchpad/test_lp_directory.py

  • Committer: Jelmer Vernooij
  • Date: 2011-01-19 06:13:58 UTC
  • mfrom: (5619 +trunk)
  • mto: This revision was merged to the branch mainline in revision 5620.
  • Revision ID: jelmer@samba.org-20110119061358-qm58pzvcp2l9cdx4
merge bzr.dev.

Show diffs side-by-side

added added

removed removed

Lines of Context:
91
91
        self.assertEquals('https://xmlrpc.launchpad.net/bazaar/',
92
92
                          factory._service_url)
93
93
 
 
94
    def test_qastaging(self):
 
95
        """A launchpad url should map to a http url"""
 
96
        factory = FakeResolveFactory(
 
97
            self, 'apt', dict(urls=[
 
98
                    'http://bazaar.qastaging.launchpad.net/~apt/apt/devel']))
 
99
        url = 'lp://qastaging/apt'
 
100
        directory = LaunchpadDirectory()
 
101
        self.assertEquals('http://bazaar.qastaging.launchpad.net/~apt/apt/devel',
 
102
                          directory._resolve(url, factory))
 
103
        # Make sure that resolve went to the qastaging server.
 
104
        self.assertEquals('https://xmlrpc.qastaging.launchpad.net/bazaar/',
 
105
                          factory._service_url)
 
106
 
94
107
    def test_staging(self):
95
108
        """A launchpad url should map to a http url"""
96
109
        factory = FakeResolveFactory(