#NEWLINE# def test_send_fails_if_relayed_connect_fails( t = Time , logic = DEFAULT_LOGIC , bear = NID ( 'bear:987' ) , mouse = NID ( 'mouse:123' ) ) : #NEWLINE# #INDENT# ( t , logic , msg ) = test_relay_is_tried_on_bad_send ( t , logic , bear = bear , mouse = mouse ) #NEWLINE# emits_ ( logic . relay_nodedown_received ( msg , mouse ) , [ ( SendFailed , msg ) , ( NodeDown , mouse ) ] )