Mercurial > public > mercurial-scm > hg-stable
diff tests/test-hgweb-auth.py @ 10282:08a0f04b56bd
many, many trivial check-code fixups
author | Matt Mackall <mpm@selenic.com> |
---|---|
date | Mon, 25 Jan 2010 00:05:27 -0600 |
parents | 89c80c3dc584 |
children | 4a43e23b8c55 |
line wrap: on
line diff
--- a/tests/test-hgweb-auth.py Mon Jan 25 00:05:22 2010 -0600 +++ b/tests/test-hgweb-auth.py Mon Jan 25 00:05:27 2010 -0600 @@ -16,7 +16,8 @@ return ui def dumpdict(dict): - return '{' + ', '.join(['%s: %s' % (k, dict[k]) for k in sorted(dict.iterkeys())]) + '}' + return '{' + ', '.join(['%s: %s' % (k, dict[k]) + for k in sorted(dict.iterkeys())]) + '}' def test(auth): print 'CFG:', dumpdict(auth) @@ -56,6 +57,8 @@ test({'x.prefix': 'example.org', 'x.schemes': 'http https'}) print '\n*** Test prefix matching\n' -test({'x.prefix': 'http://example.org/foo', 'y.prefix': 'http://example.org/bar'}) -test({'x.prefix': 'http://example.org/foo', 'y.prefix': 'http://example.org/foo/bar'}) +test({'x.prefix': 'http://example.org/foo', + 'y.prefix': 'http://example.org/bar'}) +test({'x.prefix': 'http://example.org/foo', + 'y.prefix': 'http://example.org/foo/bar'}) test({'x.prefix': '*', 'y.prefix': 'https://example.org/bar'})