mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-05-05 08:34:57 -04:00
Run Black. (#5482)
This commit is contained in:
parent
7dcf984075
commit
32e7c9e7f2
376 changed files with 9142 additions and 10388 deletions
|
@ -20,12 +20,12 @@ from tests import unittest
|
|||
class ServerNameTestCase(unittest.TestCase):
|
||||
def test_parse_server_name(self):
|
||||
test_data = {
|
||||
'localhost': ('localhost', None),
|
||||
'my-example.com:1234': ('my-example.com', 1234),
|
||||
'1.2.3.4': ('1.2.3.4', None),
|
||||
'[0abc:1def::1234]': ('[0abc:1def::1234]', None),
|
||||
'1.2.3.4:1': ('1.2.3.4', 1),
|
||||
'[0abc:1def::1234]:8080': ('[0abc:1def::1234]', 8080),
|
||||
"localhost": ("localhost", None),
|
||||
"my-example.com:1234": ("my-example.com", 1234),
|
||||
"1.2.3.4": ("1.2.3.4", None),
|
||||
"[0abc:1def::1234]": ("[0abc:1def::1234]", None),
|
||||
"1.2.3.4:1": ("1.2.3.4", 1),
|
||||
"[0abc:1def::1234]:8080": ("[0abc:1def::1234]", 8080),
|
||||
}
|
||||
|
||||
for i, o in test_data.items():
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue