def METHOD_NAME(monkeypatch):
    import METHOD_NAME
    monkeypatch.setattr(METHOD_NAME, "check_call", MagicMock())
    monkeypatch.setattr(METHOD_NAME, "check_output", MagicMock())
    monkeypatch.setattr(METHOD_NAME, "call", MagicMock())
    yield METHOD_NAME