def test_get_request_userid(self): expiryTime = iso8601('future') request = make_request('testAccount', 'bob', expiryTime) assert auth.get_request_userid(request) == 'bob', "didn't extract userid from headers"
def test_get_request_userid(self): issueTime = iso8601('now') request = make_request('testConsumer', 'bob', issueTime) assert auth.get_request_userid(request) == 'bob', "didn't extract userid from headers"
def current_user_id(): return auth.get_request_userid(request)
def test_get_request_userid(self): issue_time = make_issue_time() request = make_request('Consumer', 'bob', issue_time) assert auth.get_request_userid( request) == 'bob', "didn't extract user id from headers"
def test_get_request_userid(self): issue_time = make_issue_time() request = make_request('Consumer', 'bob', issue_time) assert auth.get_request_userid(request) == 'bob', "didn't extract user id from headers"