def _assert_msg_roundtrip(msg, raw_packet):
encoding = base64.standard_b64encode(msg.to_binary())<EOL>assert encoding == _encoded_string(raw_packet)<EOL>
Asserts that a msg gets serialized back into binary with the
expected value.

Parameters
----------
msg : Parsed SBP message.
  Parsed SBP message.
raw_packet : dict
  Unit test case for this message.