#NEWLINE# def test_protected_resource( self ) : #NEWLINE# #INDENT# '`Auth` requesting protected resource by logined user' #NEWLINE# response = self . login ( 'user name' , '123' ) #NEWLINE# response = web . ask ( self . app , '/b' , headers = { #NEWLINE# #INDENT# 'Cookie' : self . headers [ 'Set-Cookie' ] , #NEWLINE# #UNINDENT# } ) #NEWLINE# self . assertEqual ( response . status_int , 200 ) #NEWLINE# self . assertEqual ( response . body , 'ok' )