/brz/remove-bazaar

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/brz/remove-bazaar

« back to all changes in this revision

Viewing changes to bzrlib/tests/test_smart_transport.py

  • Committer: Robert Collins
  • Date: 2007-04-04 05:19:38 UTC
  • mfrom: (2395 +trunk)
  • mto: This revision was merged to the branch mainline in revision 2401.
  • Revision ID: robertc@robertcollins.net-20070404051938-2lnvpsm2tbo5a6g2
Merge bzr.dev.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1562
1562
            'Content-Length: 6\r\n'
1563
1563
            '\r\n'
1564
1564
            'hello\n')
1565
 
        request_handler = SmartRequestHandler(
1566
 
            socket, ('localhost', 80), httpd)
 
1565
        # Beware: the ('localhost', 80) below is the
 
1566
        # client_address parameter, but we don't have one because
 
1567
        # we have defined a socket which is not bound to an
 
1568
        # address. The test framework never uses this client
 
1569
        # address, so far...
 
1570
        request_handler = SmartRequestHandler(socket, ('localhost', 80), httpd)
1567
1571
        response = socket.writefile.getvalue()
1568
1572
        self.assertStartsWith(response, 'HTTP/1.0 200 ')
1569
1573
        # This includes the end of the HTTP headers, and all the body.