diff options
author | Matthew Hodgson <matthew@matrix.org> | 2018-07-24 12:39:40 +0100 |
---|---|---|
committer | Matthew Hodgson <matthew@matrix.org> | 2018-07-24 12:39:40 +0100 |
commit | cd241d6bda01a761fbe1ca29727dacd918fb8975 (patch) | |
tree | b430c373ea65462a02237e3ca81ed9f56375e389 /tests | |
parent | handle case where types is [] on postgres correctly (diff) | |
download | synapse-cd241d6bda01a761fbe1ca29727dacd918fb8975.tar.xz |
incorporate more review
Diffstat (limited to 'tests')
-rw-r--r-- | tests/storage/test_state.py | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/tests/storage/test_state.py b/tests/storage/test_state.py index 8924ba9f7f..b2f314e9db 100644 --- a/tests/storage/test_state.py +++ b/tests/storage/test_state.py @@ -158,3 +158,12 @@ class StateStoreTestCase(tests.unittest.TestCase): (e2.type, e2.state_key): e2, (e3.type, e3.state_key): e3, }, state) + + state = yield self.store.get_state_for_event( + e5.event_id, [], filtered_types=[EventTypes.Member], + ) + + self.assertStateMapEqual({ + (e1.type, e1.state_key): e1, + (e2.type, e2.state_key): e2, + }, state) |