from application_client.handshake_command_sender import HandshakeCommandSender from application_client.handshake_response_unpacker import unpack_get_version_response def test_version(backend): """GET_VERSION must report the version in Cargo.toml.""" client = HandshakeCommandSender(backend) rapdu = client.get_version() major, minor, patch = unpack_get_version_response(rapdu.data) assert (major, minor, patch) == (0, 1, 0)