diff options
author | Kegan Dougal <kegan@matrix.org> | 2016-11-22 13:42:11 +0000 |
---|---|---|
committer | Kegan Dougal <kegan@matrix.org> | 2016-11-22 13:42:11 +0000 |
commit | c3d963ac2405d601fff86421156dc0ba543499b6 (patch) | |
tree | c92cc268f6d996d5afecdf9a359f77bca0776967 /tests | |
parent | Also check for dict since sometimes they aren't frozen (diff) | |
download | synapse-c3d963ac2405d601fff86421156dc0ba543499b6.tar.xz |
Review comments
Diffstat (limited to 'tests')
-rw-r--r-- | tests/events/test_utils.py | 12 |
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": {} - } - ) + ) |