from application_client.handshake_command_sender import HandshakeCommandSender from application_client.handshake_response_unpacker import unpack_get_app_name_response def test_app_name(backend): """The wallet's preflight compares this to the exact string "Handshake", so it is part of the wire contract, not a cosmetic label.""" client = HandshakeCommandSender(backend) rapdu = client.get_app_name() assert unpack_get_app_name_response(rapdu.data) == "Handshake"