@staticmethod
def auth_token_create(context, token):
    fake_token = FakeToken(created_at=timeutils.utcnow(), **token)
    FakeAuthDatabase.data[fake_token.token_hash] = fake_token
    FakeAuthDatabase.data[('id_%i' % fake_token.id)] = fake_token
    return fake_token
@staticmethod
def auth_token_create(context, token):
    fake_token = FakeToken(created_at=timeutils.utcnow(), **token)
    FakeAuthDatabase.data[fake_token.token_hash] = fake_token
    FakeAuthDatabase.data[('id_%i' % fake_token.id)] = fake_token
    return fake_token