~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to test_register.py

  • Committer: Bjorn Tillenius
  • Date: 2006-03-23 12:49:44 UTC
  • mto: (1668.1.8 bzr-0.8.mbp)
  • mto: This revision was merged to the branch mainline in revision 1710.
  • Revision ID: bjorn.tillenius@canonical.com-20060323124944-a4f88dc8fe156e71
try to fix the tests.

Show diffs side-by-side

added added

removed removed

Lines of Context:
120
120
 
121
121
    def test_40_onto_transport(self):
122
122
        """Test how the request is sent by transmitting across a mock Transport"""
123
 
        transport = InstrumentedXMLRPCTransport(self)
 
123
        transport = 
 
124
        service = LaunchpadService()
 
125
        service.transport = InstrumentedXMLRPCTransport(self)
 
126
 
124
127
        rego = BranchRegistrationRequest('http://test-server.com/bzr/branch',
125
128
                'branch-id')
126
129
        rego.branch_title = 'short description'
127
 
        rego.submit(transport=transport)
 
130
        rego.submit(service)
128
131
        self.assertEquals(transport.connected_host, 'xmlrpc.launchpad.net')
129
132
        self.assertEquals(len(transport.sent_params), 6)
130
133
        # string branch_url,