#NEWLINE# def test_generic_plugin_malformed_url( self ) : #NEWLINE# #INDENT# cmd_args = [ '-u' , 'username' , '-p' , 'password' , '--url' , 'abced' , '--provider' , 'generic' , '-n' , 'noipy.no-ip.org' , self . test_ip ] #NEWLINE# args = self . parser . parse_args ( cmd_args ) #NEWLINE# result = main . execute_update ( args ) #NEWLINE# self . assertEqual ( result . get ( 'exec_result' ) , main . EXECUTION_RESULT_NOK , "An error should be flagged when --provider is 'generic' and URL is malformed." ) #NEWLINE# self . assertEqual ( result . get ( 'process_message' ) , 'Malformed URL.' , "Status message should be an 'Malformed URL.'" )