def METHOD_NAME(self):
    """Test if we return the right output"""
    # Create NZB and zipped version
    basenzbfile = self._create_random_nzb()
    zipnzbfile = basenzbfile + ".zip"
    with ZipFile(zipnzbfile, "w") as zipobj:
        zipobj.write(basenzbfile)
    assert os.path.exists(zipnzbfile)
    # Test for both normal and zipped version
    for nzbfile in (basenzbfile, zipnzbfile):
        # Add backup directory for duplicate detection
        backup_dir = self._add_backup_directory()
        # Add the job a first time
        job = get_api_result(mode="addlocalfile", extra_arguments={"name": nzbfile})
        assert job["status"]
        assert job["nzo_ids"]
        # 1=Discard, should return False and no nzo_ids
        self._api_set_config("no_dupes", 1)
        # Add the job a second time
        job = get_api_result(mode="addlocalfile", extra_arguments={"name": nzbfile})
        assert not job["status"]
        assert not job["nzo_ids"]
        # 3=Fail to history, should return True and nzo_ids
        self._api_set_config("no_dupes", 3)
        job = get_api_result(mode="addlocalfile", extra_arguments={"name": nzbfile})
        assert job["status"]
        assert job["nzo_ids"]
        time.sleep(1)
        assert not get_api_result(mode="queue", extra_arguments={"nzo_ids": job["nzo_ids"][0]})["queue"]["slots"]
        assert get_api_result(mode="history", extra_arguments={"nzo_ids": job["nzo_ids"][0]})["history"]["slots"]
        # Reset
        self._api_set_config("no_dupes", 0)
        # Test unwanted extensions Fail to history
        self._api_set_config("unwanted_extensions", ["bin"])
        self._api_set_config("action_on_unwanted_extensions", 2)
        job = get_api_result(mode="addlocalfile", extra_arguments={"name": nzbfile})
        assert job["status"]
        assert job["nzo_ids"]
        time.sleep(1)
        assert not get_api_result(mode="queue", extra_arguments={"nzo_ids": job["nzo_ids"][0]})["queue"]["slots"]
        assert get_api_result(mode="history", extra_arguments={"nzo_ids": job["nzo_ids"][0]})["history"]["slots"]
        # Reset and clean up
        get_api_result(
            mode="set_config_default",
            extra_arguments={"keyword": ["unwanted_extensions", "action_on_unwanted_extensions"]},
        )
        self._clear_and_reset_backup_directory(backup_dir)