def assert_vsc_received(self, received, expected): from tests.helpers.message import assert_messages_equal received = list(self.vsc.protocol.parse_each(received)) expected = list(self.vsc.protocol.parse_each(expected)) assert_messages_equal(received, expected)
def assert_received(self, received, expected): from tests.helpers.message import assert_messages_equal received = [parse_message(msg) for msg in received] expected = [parse_message(msg) for msg in expected] assert_messages_equal(received, expected)