#NEWLINE# def test_add_log_missing_args( self ) : #NEWLINE# #INDENT# path = 'pizza' #NEWLINE# url = self . node . api_url_for ( 'create_waterbutler_log' ) #NEWLINE# payload = self . build_payload ( metadata = { #NEWLINE# #INDENT# 'path' : path , #NEWLINE# #UNINDENT# } , auth = None ) #NEWLINE# nlogs = len ( self . node . logs ) #NEWLINE# res = self . app . put_json ( url , payload , headers = { #NEWLINE# #INDENT# 'Content-Type' : 'application/json' , #NEWLINE# #UNINDENT# } , expect_errors = True ) #NEWLINE# assert_equal ( payload . status_code , 400 ) #NEWLINE# self . node . reload ( ) #NEWLINE# assert_equal ( len ( self . node . logs ) , nlogs )