#NEWLINE# def test_process_router_throw_config_error( self ) : #NEWLINE# #INDENT# snip_name = 'CREATE_SUBINTERFACE' #NEWLINE# e_type = 'Fake error' #NEWLINE# e_tag = 'Fake error tag' #NEWLINE# confstr = 'Fake conf str' #NEWLINE# params = { #NEWLINE# #INDENT# 'snippet' : snip_name , #NEWLINE# 'type' : e_type , #NEWLINE# 'tag' : e_tag , #NEWLINE# 'confstr' : confstr , #NEWLINE# 'dev_id' : 'FAKE_ID' , #NEWLINE# 'ip' : 'FAKE_IP' , #NEWLINE# #UNINDENT# } #NEWLINE# self . routing_helper . _internal_network_added . side_effect = cfg_exceptions . CSR1kvConfigException ( ** params ) #NEWLINE# ( router , ports ) = prepare_router_data ( ) #NEWLINE# ri = routing_svc_helper . RouterInfo ( router [ 'id' ] , router ) #NEWLINE# self . assertRaises ( cfg_exceptions . CSR1kvConfigException , self . routing_helper . _process_router , params )