summary refs log tree commit diff
path: root/tests/storage
diff options
context:
space:
mode:
authorDaniel Wagner-Hall <daniel@matrix.org>2015-08-20 16:01:29 +0100
committerDaniel Wagner-Hall <daniel@matrix.org>2015-08-20 16:01:29 +0100
commit13a6517d89c0619a938321640f331571eba0edc9 (patch)
tree015269fdca734b7224f226a3abb5f42dcca9dadb /tests/storage
parentMove token generation to auth handler (diff)
downloadsynapse-13a6517d89c0619a938321640f331571eba0edc9.tar.xz
s/by_token/by_access_token/g
We're about to have two kinds of token, access and refresh
Diffstat (limited to 'tests/storage')
-rw-r--r--tests/storage/test_registration.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/storage/test_registration.py b/tests/storage/test_registration.py
index 2702291178..7a24cf898a 100644
--- a/tests/storage/test_registration.py
+++ b/tests/storage/test_registration.py
@@ -46,7 +46,7 @@ class RegistrationStoreTestCase(unittest.TestCase):
             (yield self.store.get_user_by_id(self.user_id))
         )
 
-        result = yield self.store.get_user_by_token(self.tokens[0])
+        result = yield self.store.get_user_by_access_token(self.tokens[0])
 
         self.assertDictContainsSubset(
             {
@@ -64,7 +64,7 @@ class RegistrationStoreTestCase(unittest.TestCase):
         yield self.store.register(self.user_id, self.tokens[0], self.pwhash)
         yield self.store.add_access_token_to_user(self.user_id, self.tokens[1])
 
-        result = yield self.store.get_user_by_token(self.tokens[1])
+        result = yield self.store.get_user_by_access_token(self.tokens[1])
 
         self.assertDictContainsSubset(
             {