diff options
author | Mark Haines <mark.haines@matrix.org> | 2015-01-23 13:21:58 +0000 |
---|---|---|
committer | Mark Haines <mark.haines@matrix.org> | 2015-01-23 13:21:58 +0000 |
commit | ada711504efb4dd25fe1123d38a0b2d196b9890a (patch) | |
tree | 73789e6eb42442559a7d1e34385827b7465f580c /tests/storage/test_room.py | |
parent | Replace hs.parse_roomid with RoomID.from_string (diff) | |
download | synapse-ada711504efb4dd25fe1123d38a0b2d196b9890a.tar.xz |
Replace hs.parse_roomalias with RoomAlias.from_string
Diffstat (limited to 'tests/storage/test_room.py')
-rw-r--r-- | tests/storage/test_room.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/storage/test_room.py b/tests/storage/test_room.py index baec3a3bb9..71e5d34143 100644 --- a/tests/storage/test_room.py +++ b/tests/storage/test_room.py @@ -19,7 +19,7 @@ from twisted.internet import defer from synapse.server import HomeServer from synapse.api.constants import EventTypes -from synapse.types import UserID, RoomID +from synapse.types import UserID, RoomID, RoomAlias from tests.utils import SQLiteMemoryDbPool @@ -40,7 +40,7 @@ class RoomStoreTestCase(unittest.TestCase): self.store = hs.get_datastore() self.room = RoomID.from_string("!abcde:test") - self.alias = hs.parse_roomalias("#a-room-name:test") + self.alias = RoomAlias.from_string("#a-room-name:test") self.u_creator = UserID.from_string("@creator:test") yield self.store.store_room(self.room.to_string(), |