summary refs log tree commit diff
diff options
context:
space:
mode:
authorPaul "LeoNerd" Evans <paul@matrix.org>2014-09-17 16:04:05 +0100
committerPaul "LeoNerd" Evans <paul@matrix.org>2014-09-17 16:04:05 +0100
commitba41ca45fa40cb23bd8f28f6802788f7f38a46b7 (patch)
tree8fd25ab5794a56150cb01c2d98e92a8181fbe3c6
parentAdded a useful unit test primitive for asserting object attributes (diff)
downloadsynapse-ba41ca45fa40cb23bd8f28f6802788f7f38a46b7.tar.xz
Use new assertObjectHasAttributes() in tests/storage/test_room.py
-rw-r--r--tests/storage/test_room.py9
1 files changed, 6 insertions, 3 deletions
diff --git a/tests/storage/test_room.py b/tests/storage/test_room.py

index 8d85d56b9a..9e794074d3 100644 --- a/tests/storage/test_room.py +++ b/tests/storage/test_room.py
@@ -50,9 +50,12 @@ class RoomStoreTestCase(unittest.TestCase): def test_get_room(self): room = yield self.store.get_room(self.room.to_string()) - self.assertEquals(self.room.to_string(), room.room_id) - self.assertEquals(self.u_creator.to_string(), room.creator) - self.assertTrue(room.is_public) + self.assertObjectHasAttributes( + {"room_id": self.room.to_string(), + "creator": self.u_creator.to_string(), + "is_public": True}, + room + ) @defer.inlineCallbacks def test_store_room_config(self):