diff options
author | Mark Haines <mark.haines@matrix.org> | 2015-01-23 11:55:12 +0000 |
---|---|---|
committer | Mark Haines <mark.haines@matrix.org> | 2015-01-23 11:55:12 +0000 |
commit | 1c06c48ce2db3c6355e29de1533aebf36bc3775b (patch) | |
tree | a114a45bcf1a1f9184344381548fd58008013ece /tests/storage/test_directory.py | |
parent | Replace hs.parse_userid with UserID.from_string (diff) | |
download | synapse-1c06c48ce2db3c6355e29de1533aebf36bc3775b.tar.xz |
Replace hs.parse_roomid with RoomID.from_string
Diffstat (limited to 'tests/storage/test_directory.py')
-rw-r--r-- | tests/storage/test_directory.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/storage/test_directory.py b/tests/storage/test_directory.py index e9c242cc07..1bc6391766 100644 --- a/tests/storage/test_directory.py +++ b/tests/storage/test_directory.py @@ -19,6 +19,7 @@ from twisted.internet import defer from synapse.server import HomeServer from synapse.storage.directory import DirectoryStore +from synapse.types import RoomID from tests.utils import SQLiteMemoryDbPool @@ -37,7 +38,7 @@ class DirectoryStoreTestCase(unittest.TestCase): self.store = DirectoryStore(hs) - self.room = hs.parse_roomid("!abcde:test") + self.room = RoomID.from_string("!abcde:test") self.alias = hs.parse_roomalias("#my-room:test") @defer.inlineCallbacks |