#NEWLINE# def test_sig_disconnect_while_still_connecting( t = Time , logic = DEFAULT_LOGIC , nid = NID ( 'kaamel:123' ) ) : #NEWLINE# #INDENT# ( t , logic ) = test_successful_connect ( nid , logic ) #NEWLINE# emits_ ( logic . sig_disconnect_received ( nid ) , [ ( Disconnect , nid2addr ( nid ) ) , ( NodeDown , nid ) ] )