diff --git a/src/tests/test_stashcache.py b/src/tests/test_stashcache.py index d08dfe63c3..b95bb751da 100644 --- a/src/tests/test_stashcache.py +++ b/src/tests/test_stashcache.py @@ -113,15 +113,15 @@ def test_scitokens_issuer_character_limit(self, client: flask.Flask): cp.read_string(origin_scitokens_conf, "origin_scitokens.conf") assert "Global" in cp, "Missing Global section" - assert ("Issuer https://test.wisc.edu" in cp, - "Issuer with reasonable length missing") - assert ("Issuer issuer-thats-50-characters-long-if-you.chop" in cp, - "Issuer that just barely fits if you chop off the scheme missing") + assert "Issuer https://test.wisc.edu" in cp, \ + "Issuer with reasonable length missing" + assert "Issuer issuer-thats-50-characters-long-if-you.chop" in cp, \ + "Issuer that just barely fits if you chop off the scheme missing" assert (cp["Issuer issuer-thats-50-characters-long-if-you.chop"]["issuer"] == - "https://issuer-thats-50-characters-long-if-you.chop", - "Unexpected issuer in a section we modified") - assert (not re.search(r"^\[[^]]{51}", origin_scitokens_conf, re.MULTILINE), - "Section over 50 chars long found") + "https://issuer-thats-50-characters-long-if-you.chop"), \ + "Unexpected issuer in a section we modified" + assert not re.search(r"^\[[^]]{51}", origin_scitokens_conf, re.MULTILINE), \ + "Section over 50 chars long found" # ^^ easier to regexp this def test_None_fdqn_isnt_error(self, client: flask.Flask):