diff options
author | Erik Johnston <erik@matrix.org> | 2017-01-26 17:16:24 +0000 |
---|---|---|
committer | Erik Johnston <erik@matrix.org> | 2017-01-26 17:16:24 +0000 |
commit | b3e1f2aa7a1d583119378bb938ad476e72cc35ac (patch) | |
tree | b51b6246990587cbd0829c24756148799ad4d10a /tests/storage | |
parent | Fix on sqlite: use left rather than outer join (diff) | |
download | synapse-b3e1f2aa7a1d583119378bb938ad476e72cc35ac.tar.xz |
Fix unit tests
Diffstat (limited to 'tests/storage')
-rw-r--r-- | tests/storage/test_end_to_end_keys.py | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/tests/storage/test_end_to_end_keys.py b/tests/storage/test_end_to_end_keys.py index 453bc61438..bfa6294250 100644 --- a/tests/storage/test_end_to_end_keys.py +++ b/tests/storage/test_end_to_end_keys.py @@ -35,6 +35,10 @@ class EndToEndKeyStoreTestCase(tests.unittest.TestCase): now = 1470174257070 json = '{ "key": "value" }' + yield self.store.store_device( + "user", "device", None + ) + yield self.store.set_e2e_device_keys( "user", "device", now, json) @@ -71,6 +75,19 @@ class EndToEndKeyStoreTestCase(tests.unittest.TestCase): def test_multiple_devices(self): now = 1470174257070 + yield self.store.store_device( + "user1", "device1", None + ) + yield self.store.store_device( + "user1", "device2", None + ) + yield self.store.store_device( + "user2", "device1", None + ) + yield self.store.store_device( + "user2", "device2", None + ) + yield self.store.set_e2e_device_keys( "user1", "device1", now, 'json11') yield self.store.set_e2e_device_keys( |