#NEWLINE# def test_token_auth_via_header_valid_token( client ) : #NEWLINE# #INDENT# response = json_authenticate ( client ) #NEWLINE# token = response . jdata [ 'response' ] [ 'user' ] [ 'authentication_token' ] #NEWLINE# headers = { #NEWLINE# #INDENT# 'Authentication-Token' : token , #NEWLINE# #UNINDENT# } #NEWLINE# response = client . get ( '/token' , headers = headers ) #NEWLINE# assert ( b'Token Authentication' in response . data )