def METHOD_NAME(
    mocker,
    test_emitter,
    alice_test_config,
    capsys,
    tmpdir,
    test_registry_source_manager,
):
    # Setup
    mocker.patch.object(passwords, 'secret_box_decrypt', side_effect=SecretBoxAuthenticationError)
    mocker.patch.object(CharacterConfiguration,
                        'dev_mode',
                        return_value=False,
                        new_callable=mocker.PropertyMock)
    keystore = Keystore.generate(password=INSECURE_DEVELOPMENT_PASSWORD, keystore_dir=tmpdir)
    alice_test_config.attach_keystore(keystore)
    # Test
    with pytest.raises(Keystore.AuthenticationFailed):
        unlock_nucypher_keystore(
            emitter=test_emitter,
            password=INSECURE_DEVELOPMENT_PASSWORD + "typo",
            character_configuration=alice_test_config,
        )
    captured = capsys.readouterr()
    assert (
        DECRYPTING_CHARACTER_KEYSTORE.format(name=alice_test_config.NAME.capitalize())
        in captured.out
    )