mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-08-05 08:34:13 -04:00
Run black.
This commit is contained in:
parent
b37c472419
commit
8b3d9b6b19
75 changed files with 1626 additions and 2277 deletions
|
@ -39,15 +39,13 @@ class ServerNameTestCase(unittest.TestCase):
|
|||
"[1234",
|
||||
"underscore_.com",
|
||||
"percent%65.com",
|
||||
"1234:5678:80", # too many colons
|
||||
"1234:5678:80", # too many colons
|
||||
]
|
||||
for i in test_data:
|
||||
try:
|
||||
parse_and_validate_server_name(i)
|
||||
self.fail(
|
||||
"Expected parse_and_validate_server_name('%s') to throw" % (
|
||||
i,
|
||||
),
|
||||
"Expected parse_and_validate_server_name('%s') to throw" % (i,)
|
||||
)
|
||||
except ValueError:
|
||||
pass
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue