mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-06-09 01:32:41 -04:00
Run Black on the tests again (#5170)
This commit is contained in:
parent
d9a02d1201
commit
b36c82576e
54 changed files with 818 additions and 1158 deletions
|
@ -94,8 +94,7 @@ class MapUsernameTestCase(unittest.TestCase):
|
|||
|
||||
def testSymbols(self):
|
||||
self.assertEqual(
|
||||
map_username_to_mxid_localpart("test=$?_1234"),
|
||||
"test=3d=24=3f_1234",
|
||||
map_username_to_mxid_localpart("test=$?_1234"), "test=3d=24=3f_1234"
|
||||
)
|
||||
|
||||
def testLeadingUnderscore(self):
|
||||
|
@ -105,6 +104,5 @@ class MapUsernameTestCase(unittest.TestCase):
|
|||
# this should work with either a unicode or a bytes
|
||||
self.assertEqual(map_username_to_mxid_localpart(u'têst'), "t=c3=aast")
|
||||
self.assertEqual(
|
||||
map_username_to_mxid_localpart(u'têst'.encode('utf-8')),
|
||||
"t=c3=aast",
|
||||
map_username_to_mxid_localpart(u'têst'.encode('utf-8')), "t=c3=aast"
|
||||
)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue