#NEWLINE# def test_revive_connection( self ) : #NEWLINE# #INDENT# on_revive = Mock ( ) #NEWLINE# channel = Mock ( ) #NEWLINE# common . revive_connection ( Mock ( ) , channel , on_revive ) #NEWLINE# on_revive . assert_called_with ( channel ) #NEWLINE# common . revive_connection ( Mock ( ) , channel , None )