diff options
author | Kegan Dougal <kegan@matrix.org> | 2016-11-21 17:42:16 +0000 |
---|---|---|
committer | Kegan Dougal <kegan@matrix.org> | 2016-11-21 17:42:16 +0000 |
commit | f97511a1f3197c6011b5ef7a363885dde9939d6b (patch) | |
tree | 1c726c95a488df8dad25532a817b09812504b148 /tests/events/test_utils.py | |
parent | Add filter_event_fields and filter_field to FilterCollection (diff) | |
download | synapse-f97511a1f3197c6011b5ef7a363885dde9939d6b.tar.xz |
Move event_fields filtering to serialize_event
Also make it an inclusive not exclusive filter, as the spec demands.
Diffstat (limited to '')
-rw-r--r-- | tests/events/test_utils.py | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/tests/events/test_utils.py b/tests/events/test_utils.py index fb0953c4ec..b9f55d174d 100644 --- a/tests/events/test_utils.py +++ b/tests/events/test_utils.py @@ -114,3 +114,24 @@ class PruneEventTestCase(unittest.TestCase): 'unsigned': {}, } ) + + +class SerializeEventTestCase(unittest.TestCase): + + def test_event_fields_works_with_keys(self): + pass + + def test_event_fields_works_with_nested_keys(self): + pass + + def test_event_fields_works_with_dot_keys(self): + pass + + def test_event_fields_works_with_nested_dot_keys(self): + pass + + def test_event_fields_nops_with_unknown_keys(self): + pass + + def test_event_fields_nops_with_non_dict_keys(self): + pass |