~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/test_smart_transport.py

  • Committer: Martin Pool
  • Date: 2007-04-01 06:19:16 UTC
  • mfrom: (2323.5.20 0.15-integration)
  • mto: This revision was merged to the branch mainline in revision 2390.
  • Revision ID: mbp@sourcefrog.net-20070401061916-plpgsxdf8g7gll9o
Merge 0.15 final release back to trunk, including: recommend upgrades of old workingtrees, handle multiple http redirections, some dirstate fixes, 

Show diffs side-by-side

added added

removed removed

Lines of Context:
1478
1478
            'Content-Length: 6\r\n'
1479
1479
            '\r\n'
1480
1480
            'hello\n')
1481
 
        request_handler = SmartRequestHandler(
1482
 
            socket, ('localhost', 80), httpd)
 
1481
        # Beware: the ('localhost', 80) below is the
 
1482
        # client_address parameter, but we don't have one because
 
1483
        # we have defined a socket which is not bound to an
 
1484
        # address. The test framework never uses this client
 
1485
        # address, so far...
 
1486
        request_handler = SmartRequestHandler(socket, ('localhost', 80), httpd)
1483
1487
        response = socket.writefile.getvalue()
1484
1488
        self.assertStartsWith(response, 'HTTP/1.0 200 ')
1485
1489
        # This includes the end of the HTTP headers, and all the body.