Skip to content
Snippets Groups Projects
Commit ba41ca45 authored by Paul "LeoNerd" Evans's avatar Paul "LeoNerd" Evans
Browse files

Use new assertObjectHasAttributes() in tests/storage/test_room.py

parent 7aacd683
No related merge requests found
......@@ -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):
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment