/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 breezy/tests/test_wsgi.py

  • Committer: Jelmer Vernooij
  • Date: 2019-03-04 00:16:27 UTC
  • mfrom: (7293 work)
  • mto: This revision was merged to the branch mainline in revision 7318.
  • Revision ID: jelmer@jelmer.uk-20190304001627-v6u7o6pf97tukhek
Merge trunk.

Show diffs side-by-side

added added

removed removed

Lines of Context:
136
136
        # wsgi.RelpathSetter is WSGI "middleware" to set the 'breezy.relpath'
137
137
        # variable.
138
138
        calls = []
 
139
 
139
140
        def fake_app(environ, start_response):
140
141
            calls.append(environ['breezy.relpath'])
141
142
        wrapped_app = wsgi.RelpathSetter(
189
190
    def test_incomplete_request(self):
190
191
        transport = FakeTransport()
191
192
        wsgi_app = wsgi.SmartWSGIApp(transport)
 
193
 
192
194
        def make_request(transport, write_func, bytes, root_client_path):
193
195
            request = IncompleteRequest(transport, write_func)
194
196
            request.accept_bytes(bytes)
326
328
    def next_read_size(self):
327
329
        # this request always asks for more
328
330
        return 1
329