mirror of
https://git.anonymousland.org/anonymousland/synapse-product.git
synced 2024-10-01 08:25:44 -04:00
Fix unit tests
This commit is contained in:
parent
31aca5589c
commit
b3e1f2aa7a
@ -35,6 +35,10 @@ class EndToEndKeyStoreTestCase(tests.unittest.TestCase):
|
|||||||
now = 1470174257070
|
now = 1470174257070
|
||||||
json = '{ "key": "value" }'
|
json = '{ "key": "value" }'
|
||||||
|
|
||||||
|
yield self.store.store_device(
|
||||||
|
"user", "device", None
|
||||||
|
)
|
||||||
|
|
||||||
yield self.store.set_e2e_device_keys(
|
yield self.store.set_e2e_device_keys(
|
||||||
"user", "device", now, json)
|
"user", "device", now, json)
|
||||||
|
|
||||||
@ -71,6 +75,19 @@ class EndToEndKeyStoreTestCase(tests.unittest.TestCase):
|
|||||||
def test_multiple_devices(self):
|
def test_multiple_devices(self):
|
||||||
now = 1470174257070
|
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(
|
yield self.store.set_e2e_device_keys(
|
||||||
"user1", "device1", now, 'json11')
|
"user1", "device1", now, 'json11')
|
||||||
yield self.store.set_e2e_device_keys(
|
yield self.store.set_e2e_device_keys(
|
||||||
|
Loading…
Reference in New Issue
Block a user