mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-01-27 02:17:00 -05:00
Use new assertObjectHasAttributes() in tests/storage/test_room.py
This commit is contained in:
parent
7aacd6834a
commit
ba41ca45fa
@ -50,9 +50,12 @@ class RoomStoreTestCase(unittest.TestCase):
|
|||||||
def test_get_room(self):
|
def test_get_room(self):
|
||||||
room = yield self.store.get_room(self.room.to_string())
|
room = yield self.store.get_room(self.room.to_string())
|
||||||
|
|
||||||
self.assertEquals(self.room.to_string(), room.room_id)
|
self.assertObjectHasAttributes(
|
||||||
self.assertEquals(self.u_creator.to_string(), room.creator)
|
{"room_id": self.room.to_string(),
|
||||||
self.assertTrue(room.is_public)
|
"creator": self.u_creator.to_string(),
|
||||||
|
"is_public": True},
|
||||||
|
room
|
||||||
|
)
|
||||||
|
|
||||||
@defer.inlineCallbacks
|
@defer.inlineCallbacks
|
||||||
def test_store_room_config(self):
|
def test_store_room_config(self):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user