def assert_packed_msg_equal(b1, b2):
msg1 = srsly.msgpack_loads(b1)<EOL>msg2 = srsly.msgpack_loads(b2)<EOL>assert sorted(msg1.keys()) == sorted(msg2.keys())<EOL>for (k1, v1), (k2, v2) in zip(sorted(msg1.items()), sorted(msg2.items())):<EOL><INDENT>assert k1 == k2<EOL>assert v1 == v2<EOL><DEDENT>
Assert that two packed msgpack messages are equal.