/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_http.py

Merge from bzr.dev.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
# Copyright (C) 2005, 2006 Canonical
 
1
# Copyright (C) 2005, 2006 Canonical Ltd
2
2
#
3
3
# This program is free software; you can redistribute it and/or modify
4
4
# it under the terms of the GNU General Public License as published by
26
26
 
27
27
import bzrlib
28
28
from bzrlib.errors import DependencyNotPresent, UnsupportedProtocol
 
29
from bzrlib import osutils
29
30
from bzrlib.tests import TestCase, TestSkipped
30
31
from bzrlib.transport import get_transport, Transport
31
32
from bzrlib.transport.http import extract_auth, HttpTransportBase
340
341
        sock.connect((server.host, server.port))
341
342
        sock.sendall('abc')
342
343
        self.assertEqual('HTTP/1.1 200 OK\r\n',
343
 
                         sock.recv(4096, socket.MSG_WAITALL))
 
344
                         osutils.recv_all(sock, 4096))
344
345
        self.assertEqual('abc', server.received_bytes)