def METHOD_NAME(self, patches):
    patches.path_exists.return_value = True
    with pytest.raises(WorkflowArchiverError):
        WorkflowExportUtils.check_war_already_exists('some-workflow', None, False)
    _validate_war(patches)