/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: Breezy landing bot
  • Author(s): Jelmer Vernooij
  • Date: 2018-11-16 18:59:44 UTC
  • mfrom: (7143.15.15 more-cleanups)
  • Revision ID: breezy.the.bot@gmail.com-20181116185944-biefv1sub37qfybm
Sprinkle some PEP8iness.

Merged from https://code.launchpad.net/~jelmer/brz/more-cleanups/+merge/358611

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