def METHOD_NAME(self):
    self.step_name('Test invalid fuzzy image hash algorithm')
    # invalid algorithm
    (TC.path_tmp / 'invalid-alg.ldb').write_text(
        "logo.png.bad;Engine:150-255,Target:0;0;fuzzy_imgy#af2ad01ed42993c7#0\n"
    )
    command = '{valgrind} {valgrind_args} {clamscan} -d {path_db} {testfiles} --allmatch'.format(
        valgrind=TC.valgrind, valgrind_args=TC.valgrind_args, clamscan=TC.clamscan,
        path_db=TC.path_tmp / 'invalid-alg.ldb',
        testfiles=TC.testfiles,
    )
    output = self.execute_command(command)
    assert output.ec == 2  # error
    expected_stderr = [
        'cli_loadldb: failed to parse subsignature 0 in logo.png',
    ]
    unexpected_stdout = [
        'logo.png.bad.UNOFFICIAL FOUND',
    ]
    self.verify_output(output.err, expected=expected_stderr)
    self.verify_output(output.out, unexpected=unexpected_stdout)