def METHOD_NAME(puppet_config):
    """
    Test to runs a plugin synch between the puppet master and agent
    """
    cmd_run_mock = MagicMock(return_value=puppet_config)
    with patch.dict(puppet.__salt__, {"cmd.run": cmd_run_mock}):
        mock_lst = MagicMock(side_effect=[False, True])
        with patch.dict(puppet.__salt__, {"cmd.run": mock_lst}):
            assert puppet.plugin_sync() == ""
            assert puppet.plugin_sync()