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

  • Committer: Martin
  • Date: 2017-11-12 13:53:51 UTC
  • mto: This revision was merged to the branch mainline in revision 6810.
  • Revision ID: gzlist@googlemail.com-20171112135351-uyr1ncw7visg62c2
Apply 2to3 ws_comma fixer

Show diffs side-by-side

added added

removed removed

Lines of Context:
216
216
    def redirect_to(self, host, port):
217
217
        """Redirect all requests to a specific host:port"""
218
218
        self.redirections = [('(.*)',
219
 
                              r'http://%s:%s\1' % (host, port) ,
 
219
                              r'http://%s:%s\1' % (host, port),
220
220
                              301)]
221
221
 
222
222
    def is_redirected(self, path):
374
374
        header = 'Digest realm="%s", ' % tcs.auth_realm
375
375
        header += 'nonce="%s", algorithm="%s", qop="auth"' % (tcs.auth_nonce,
376
376
                                                              'MD5')
377
 
        self.send_header(tcs.auth_header_sent,header)
 
377
        self.send_header(tcs.auth_header_sent, header)
378
378
 
379
379
 
380
380
class DigestAndBasicAuthRequestHandler(DigestAuthRequestHandler):
392
392
        header = 'Digest realm="%s", ' % tcs.auth_realm
393
393
        header += 'nonce="%s", algorithm="%s", qop="auth"' % (tcs.auth_nonce,
394
394
                                                              'MD5')
395
 
        self.send_header(tcs.auth_header_sent,header)
 
395
        self.send_header(tcs.auth_header_sent, header)
396
396
 
397
397
 
398
398
class AuthServer(http_server.HttpServer):