/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

Starting factoring out the smart server client "medium" from the protocol.

Show diffs side-by-side

added added

removed removed

Lines of Context:
125
125
        self.assertTrue(server.logs[0].find(
126
126
            '"GET /foo/bar HTTP/1.1" 200 - "-" "bzr/%s' % bzrlib.__version__) > -1)
127
127
 
 
128
    def test_get_smart_medium(self):
 
129
        # For HTTP, get_smart_medium should return the transport object.
 
130
        server = self.get_readonly_server()
 
131
        http_transport = self._transport(server.get_url())
 
132
        medium = http_transport.get_smart_medium()
 
133
        self.assertTrue(medium is http_transport)
 
134
 
128
135
 
129
136
class TestHttpConnections_urllib(TestCaseWithWebserver, TestHttpMixins):
130
137