Skip to content

Commit 838ed87

Browse files
frozencemeterysimo5
authored andcommitted
Fix various Python indentation problems
Signed-off-by: Robbie Harwood <rharwood@redhat.com>
1 parent ea49dee commit 838ed87

File tree

5 files changed

+9
-9
lines changed

5 files changed

+9
-9
lines changed

tests/magtests.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -523,7 +523,7 @@ def test_required_name_attr(testdir, testenv, logfile):
523523

524524
def test_spnego_rewrite(testdir, testenv, logfile):
525525
spnego_rewrite_dir = os.path.join(testdir, 'httpd', 'html',
526-
'spnego_rewrite')
526+
'spnego_rewrite')
527527
os.mkdir(spnego_rewrite_dir)
528528
shutil.copy('tests/index.html', spnego_rewrite_dir)
529529

@@ -539,7 +539,7 @@ def test_spnego_rewrite(testdir, testenv, logfile):
539539

540540
def test_spnego_negotiate_once(testdir, testenv, logfile):
541541
spnego_negotiate_once_dir = os.path.join(testdir, 'httpd', 'html',
542-
'spnego_negotiate_once')
542+
'spnego_negotiate_once')
543543
os.mkdir(spnego_negotiate_once_dir)
544544
shutil.copy('tests/index.html', spnego_negotiate_once_dir)
545545

tests/t_basic_k5_two_users.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,4 +25,4 @@
2525
raise ValueError('Basic Auth failed')
2626

2727
if r.text == r2.text:
28-
raise ValueError('Basic Auth fatal error')
28+
raise ValueError('Basic Auth fatal error')

tests/t_basic_proxy.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,9 @@
88

99
if __name__ == '__main__':
1010
proxy = 'http://%s:%s@%s:%s' % (os.environ['MAG_USER_NAME'],
11-
os.environ['MAG_USER_PASSWORD'],
12-
os.environ['NSS_WRAPPER_HOSTNAME'],
13-
os.environ['WRAP_PROXY_PORT'])
11+
os.environ['MAG_USER_PASSWORD'],
12+
os.environ['NSS_WRAPPER_HOSTNAME'],
13+
os.environ['WRAP_PROXY_PORT'])
1414
proxies = { "http": proxy, }
1515
url = 'http://%s/basic_auth_krb5/' % os.environ['NSS_WRAPPER_HOSTNAME']
1616
r = requests.get(url, proxies=proxies,

tests/t_nonego.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
r = requests.get(url, headers={'User-Agent': 'NONEGO'})
2424
if r.status_code != 401:
2525
raise ValueError('NO Negotiate failed - 401 expected')
26-
if (r.headers.get("WWW-Authenticate") and
27-
r.headers.get("WWW-Authenticate").startswith("Negotiate")):
26+
if r.headers.get("WWW-Authenticate") and \
27+
r.headers.get("WWW-Authenticate").startswith("Negotiate"):
2828
raise ValueError('NO Negotiate failed - WWW-Authenticate '
2929
'Negotiate header is present, should be absent')

tests/t_spnego_negotiate_once.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
if r.status_code != 401:
1818
raise ValueError('Spnego Negotiate Once failed - 401 expected')
1919
if not (r.headers.get("WWW-Authenticate") and
20-
r.headers.get("WWW-Authenticate").startswith("Negotiate")):
20+
r.headers.get("WWW-Authenticate").startswith("Negotiate")):
2121
raise ValueError('Spnego Negotiate Once failed - WWW-Authenticate '
2222
'Negotiate header missing')
2323

0 commit comments

Comments
 (0)