def mk_readable_msg(msg):
f = walk_json_dict(dict([(k, getattr(msg, k)) for k in msg.__slots__]))<EOL>i = {'<STR_LIT>' : base64.standard_b64encode(msg.pack()),<EOL>'<STR_LIT>'   : msg.to_json(),<EOL>'<STR_LIT>'   : hex(msg.msg_type),<EOL>'<STR_LIT>'        : _to_readable_dict(msg),<EOL>'<STR_LIT>'        : { '<STR_LIT>' : msg.__class__.__module__,<EOL>'<STR_LIT:name>' : msg.__class__.__name__,<EOL>'<STR_LIT>' : f if f else None}}<EOL>return i<EOL>
Produces a unit test case from a parsed SBP message. The case
includes the raw output, the SBP message with unparsed payload, and
the parsed SBP message

Parameters
----------
msg : Subclass of :class: `SBP`.
  Parsed SBP message.
keys : list
  List of keys to remove from the rendered

Returns
----------
A dict formatted for a unit test case.