Fix tests

This commit is contained in:
David Baker 2015-03-24 18:56:51 +00:00
parent 438a21c87b
commit ce2766d19c
5 changed files with 14 additions and 14 deletions

View file

@ -38,7 +38,7 @@ class RegistrationStoreTestCase(unittest.TestCase):
@defer.inlineCallbacks
def test_register(self):
yield self.store.register(self.user_id, self.tokens[0], self.pwhash)
u = yield self.store.get_user_by_id(self.user_id)[0]
u = (yield self.store.get_user_by_id(self.user_id))[0]
# TODO(paul): Surely this field should be 'user_id', not 'name'
# Additionally surely it shouldn't come in a 1-element list