diff options
author | Erik Johnston <erik@matrix.org> | 2017-01-30 17:11:24 +0000 |
---|---|---|
committer | Erik Johnston <erik@matrix.org> | 2017-01-30 17:11:24 +0000 |
commit | c7a26b7c3243c3187a8d12060cb2d2a02d318260 (patch) | |
tree | b60df0912b0ae6e71f48f897d77aab7683223e2d /tests | |
parent | Noop device key changes if they're the same (diff) | |
download | synapse-c7a26b7c3243c3187a8d12060cb2d2a02d318260.tar.xz |
Fix unit tests
Diffstat (limited to 'tests')
-rw-r--r-- | tests/storage/test_end_to_end_keys.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/storage/test_end_to_end_keys.py b/tests/storage/test_end_to_end_keys.py index bfa6294250..84ce492a2c 100644 --- a/tests/storage/test_end_to_end_keys.py +++ b/tests/storage/test_end_to_end_keys.py @@ -33,7 +33,7 @@ class EndToEndKeyStoreTestCase(tests.unittest.TestCase): @defer.inlineCallbacks def test_key_without_device_name(self): now = 1470174257070 - json = '{ "key": "value" }' + json = {"key": "value"} yield self.store.store_device( "user", "device", None @@ -47,14 +47,14 @@ class EndToEndKeyStoreTestCase(tests.unittest.TestCase): self.assertIn("device", res["user"]) dev = res["user"]["device"] self.assertDictContainsSubset({ - "key_json": json, + "keys": json, "device_display_name": None, }, dev) @defer.inlineCallbacks def test_get_key_with_device_name(self): now = 1470174257070 - json = '{ "key": "value" }' + json = {"key": "value"} yield self.store.set_e2e_device_keys( "user", "device", now, json) @@ -67,7 +67,7 @@ class EndToEndKeyStoreTestCase(tests.unittest.TestCase): self.assertIn("device", res["user"]) dev = res["user"]["device"] self.assertDictContainsSubset({ - "key_json": json, + "keys": json, "device_display_name": "display_name", }, dev) |