@mock.patch('fbpush.push.logger.warn')
    @mock.patch.object(push.JunoscriptRpc, '_handle_connection_close')
    def test_clientConnectionFailed(self, mock_handler, mock_logger):
        reason = 'abc'
        self.mock_JunoscriptRpc.clientConnectionFailed('connector1', reason)
        msg = "Connection failed to %s %s"
        mock_logger.assert_called_with(msg, self.device.name, reason)
        mock_handler.assert_called_with()
Return the state of the player.
dataset/ETHPy150Open facebook/fbpush/tests/test_push.py/FBPushJunoscriptRpcTestCase.test_clientConnectionFailed--crossover with--dataset/ETHPy150Open home-assistant/home-assistant/homeassistant/components/media_player/snapcast.py/SnapcastDevice.state