#NEWLINE# def test_getUserByName( self ) : #NEWLINE# #INDENT# ' api key, passed by query ' #NEWLINE# ( req , _ ) = app . op [ 'getUserByName' ] ( username = 'mission' ) #NEWLINE# self . s ( req ) . prepare ( ) #NEWLINE# qk = [ x for x in req . query if ( x [ 0 ] == 'simpleQK' ) ] #NEWLINE# self . assertTrue ( ( len ( qk ) > 0 ) ) #NEWLINE# self . assertEqual ( qk [ 0 ] [ 1 ] , '123456' )