#NEWLINE# def test_unauthorized_if_no_credentials( self ) : #NEWLINE# #INDENT# self . app . put_json ( ( '/models/%s' % self . model_id ) , { #NEWLINE# #INDENT# 'definition' : self . valid_definition , #NEWLINE# #UNINDENT# } , headers = self . headers ) #NEWLINE# resp = self . app . get ( ( '/models/%s' % resp . model_id ) , status = 401 ) #NEWLINE# self . assertIn ( '401' , resp )