#NEWLINE# @ mock . patch ( 'fbpush.push.logger.info' ) #NEWLINE# @ mock . patch . object ( push . JunoscriptRpc , 'updateStatus' ) #NEWLINE# def test_startedConnecting( self , mock_updateStatus , mock_logger ) : #NEWLINE# #INDENT# 'Check the method startedConnecting.' #NEWLINE# self . mock_JunoscriptRpc . startedConnecting ( 'connector1' ) #NEWLINE# msg = 'Connecting to %s. (Already %d active workers)' #NEWLINE# mock_logger . assert_called_with ( msg , self . device . name , 0 ) #NEWLINE# mock_updateStatus . assert_called_with ( 'c' , 'CONNECTING' , False )