Пример #1
0
 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"
Пример #3
0
def current_user_id():
    return auth.get_request_userid(request)
Пример #4
0
 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"
Пример #5
0
def current_user_id():
    return auth.get_request_userid(request)
Пример #6
0
 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"