summary refs log tree commit diff
path: root/tests/events
diff options
context:
space:
mode:
authorKegan Dougal <kegan@matrix.org>2016-11-21 17:42:16 +0000
committerKegan Dougal <kegan@matrix.org>2016-11-21 17:42:16 +0000
commitf97511a1f3197c6011b5ef7a363885dde9939d6b (patch)
tree1c726c95a488df8dad25532a817b09812504b148 /tests/events
parentAdd filter_event_fields and filter_field to FilterCollection (diff)
downloadsynapse-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 'tests/events')
-rw-r--r--tests/events/test_utils.py21
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