mirror of
https://git.anonymousland.org/anonymousland/synapse-product.git
synced 2025-02-02 05:54:53 -05:00
Skip redundant check on request.args
This commit is contained in:
parent
0378581c13
commit
5bcf6e8289
@ -64,11 +64,10 @@ class JsonResourceTests(unittest.TestCase):
|
|||||||
"test_servlet",
|
"test_servlet",
|
||||||
)
|
)
|
||||||
|
|
||||||
request, channel = make_request(
|
make_request(
|
||||||
self.reactor, FakeSite(res), b"GET", b"/_matrix/foo/%E2%98%83?a=%E2%98%83"
|
self.reactor, FakeSite(res), b"GET", b"/_matrix/foo/%E2%98%83?a=%E2%98%83"
|
||||||
)
|
)
|
||||||
|
|
||||||
self.assertEqual(request.args, {b"a": ["\N{SNOWMAN}".encode("utf8")]})
|
|
||||||
self.assertEqual(got_kwargs, {"room_id": "\N{SNOWMAN}"})
|
self.assertEqual(got_kwargs, {"room_id": "\N{SNOWMAN}"})
|
||||||
|
|
||||||
def test_callback_direct_exception(self):
|
def test_callback_direct_exception(self):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user