summary refs log tree commit diff
path: root/tests/events/test_utils.py
diff options
context:
space:
mode:
authorKegan Dougal <kegan@matrix.org>2016-11-22 13:42:11 +0000
committerKegan Dougal <kegan@matrix.org>2016-11-22 13:42:11 +0000
commitc3d963ac2405d601fff86421156dc0ba543499b6 (patch)
treec92cc268f6d996d5afecdf9a359f77bca0776967 /tests/events/test_utils.py
parentAlso check for dict since sometimes they aren't frozen (diff)
downloadsynapse-c3d963ac2405d601fff86421156dc0ba543499b6.tar.xz
Review comments
Diffstat (limited to 'tests/events/test_utils.py')
-rw-r--r--tests/events/test_utils.py12
1 files changed, 2 insertions, 10 deletions
diff --git a/tests/events/test_utils.py b/tests/events/test_utils.py
index 5b3326ce8d..29f068d1f1 100644
--- a/tests/events/test_utils.py
+++ b/tests/events/test_utils.py
@@ -272,7 +272,7 @@ class SerializeEventTestCase(unittest.TestCase):
         )
 
     def test_event_fields_fail_if_fields_not_str(self):
-        self.assertEquals(
+        with self.assertRaises(TypeError):
             self.serialize(
                 MockEvent(
                     room_id="!foo:bar",
@@ -281,12 +281,4 @@ class SerializeEventTestCase(unittest.TestCase):
                     },
                 ),
                 ["room_id", 4]
-            ),
-            {
-                "room_id": "!foo:bar",
-                "content": {
-                    "foo": "bar",
-                },
-                "unsigned": {}
-            }
-        )
+            )