def assert_contains(self, received, expected): from tests.helpers.message import assert_contains_messages received = [parse_message(msg) for msg in received] expected = [parse_message(msg) for msg in expected] assert_contains_messages(received, expected)
def assert_contains(self, received, expected, parser='vsc'): parser = self.vsc.protocol if parser == 'vsc' else parser from tests.helpers.message import assert_contains_messages received = list(parser.parse_each(received)) expected = list(parser.parse_each(expected)) assert_contains_messages(received, expected)
def assert_contains(self, received, expected): from tests.helpers.message import assert_contains_messages received = list(self.vsc.protocol.parse_each(received)) expected = list(self.vsc.protocol.parse_each(expected)) assert_contains_messages(received, expected)