def METHOD_NAME(self, caplog):
    args = {
        "filenames": [
            "test/condensed-downloads/dovecot-2.3.14-1.fc34.i686.rpm",
            "test/condensed-downloads/dovecot-core_2.3.13+dfsg1-1ubuntu1_amd64.deb",
        ],
        "product_name": None,
        "version_number": None,
        "string_length": 30,
    }
    with caplog.at_level(logging.ERROR):
        scan_files(args)
        assert "PRODUCT_NAME not in arguments" in caplog.text