diff options
author | Mark Haines <mark.haines@matrix.org> | 2014-10-16 00:09:48 +0100 |
---|---|---|
committer | Mark Haines <mark.haines@matrix.org> | 2014-10-16 00:09:48 +0100 |
commit | 66104da10c4191aa1e048f2379190574755109e6 (patch) | |
tree | 6b98f50ebaef2b75c78368174ddb939c3e95200e /tests/utils.py | |
parent | persist hashes and origin signatures for PDUs (diff) | |
download | synapse-66104da10c4191aa1e048f2379190574755109e6.tar.xz |
Sign outgoing PDUs.
Diffstat (limited to '')
-rw-r--r-- | tests/utils.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/utils.py b/tests/utils.py index 60fd6085ac..d8be73dba8 100644 --- a/tests/utils.py +++ b/tests/utils.py @@ -118,13 +118,14 @@ class MockHttpResource(HttpServer): class MockKey(object): alg = "mock_alg" version = "mock_version" + signature = b"\x9a\x87$" @property def verify_key(self): return self def sign(self, message): - return b"\x9a\x87$" + return self def verify(self, message, sig): assert sig == b"\x9a\x87$" |