diff options
author | Brendan Abolivier <babolivier@matrix.org> | 2020-08-06 17:15:35 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-08-06 17:15:35 +0100 |
commit | 2ffd6783c7af12e3c29e1a44dee4a9deeb83890b (patch) | |
tree | a757175121ecd385dd174b84b30016cf74c81350 /tests/rest/client/v1/utils.py | |
parent | Convert some util functions to async (#8035) (diff) | |
download | synapse-2ffd6783c7af12e3c29e1a44dee4a9deeb83890b.tar.xz |
Revert #7736 (#8039)
Diffstat (limited to 'tests/rest/client/v1/utils.py')
-rw-r--r-- | tests/rest/client/v1/utils.py | 20 |
1 files changed, 0 insertions, 20 deletions
diff --git a/tests/rest/client/v1/utils.py b/tests/rest/client/v1/utils.py index 51941f99f9..8933b560d2 100644 --- a/tests/rest/client/v1/utils.py +++ b/tests/rest/client/v1/utils.py @@ -165,26 +165,6 @@ class RestHelper(object): return channel.json_body - def redact(self, room_id, event_id, txn_id=None, tok=None, expect_code=200): - if txn_id is None: - txn_id = "m%s" % (str(time.time())) - - path = "/_matrix/client/r0/rooms/%s/redact/%s/%s" % (room_id, event_id, txn_id) - if tok: - path = path + "?access_token=%s" % tok - - request, channel = make_request( - self.hs.get_reactor(), "PUT", path, json.dumps({}).encode("utf8") - ) - render(request, self.resource, self.hs.get_reactor()) - - assert int(channel.result["code"]) == expect_code, ( - "Expected: %d, got: %d, resp: %r" - % (expect_code, int(channel.result["code"]), channel.result["body"]) - ) - - return channel.json_body - def _read_write_state( self, room_id: str, |