~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

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

  • Committer: Andrew Bennetts
  • Date: 2010-12-14 23:14:44 UTC
  • mfrom: (5569 +trunk)
  • mto: This revision was merged to the branch mainline in revision 5570.
  • Revision ID: andrew.bennetts@canonical.com-20101214231444-uubf7zjbg8q92ocs
MergeĀ lp:bzr.

Show diffs side-by-side

added added

removed removed

Lines of Context:
133
133
 
134
134
 
135
135
class TestBranchRegistration(TestCaseWithTransport):
136
 
    SAMPLE_URL = 'http://bazaar-vcs.org/bzr/bzr.dev/'
137
 
    SAMPLE_OWNER = 'jhacker@foo.com'
138
 
    SAMPLE_BRANCH_ID = 'bzr.dev'
139
136
 
140
137
    def setUp(self):
141
138
        super(TestBranchRegistration, self).setUp()
175
172
        self.assertEquals(out, 'Branch registered.\n')
176
173
 
177
174
    def test_onto_transport(self):
178
 
        """Test how the request is sent by transmitting across a mock Transport"""
 
175
        """How the request is sent by transmitting across a mock Transport"""
179
176
        # use a real transport, but intercept at the http/xml layer
180
177
        transport = InstrumentedXMLRPCTransport(self, expect_auth=True)
181
178
        service = LaunchpadService(transport)
200
197
        self.assertTrue(transport.got_request)
201
198
 
202
199
    def test_onto_transport_unauthenticated(self):
203
 
        """Test how an unauthenticated request is transmitted across a mock Transport"""
 
200
        """An unauthenticated request is transmitted across a mock Transport"""
204
201
        transport = InstrumentedXMLRPCTransport(self, expect_auth=False)
205
202
        service = LaunchpadService(transport)
206
203
        resolve = ResolveLaunchpadPathRequest('bzr')