예제 #1
0
 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)
예제 #2
0
파일: __init__.py 프로젝트: rozuur/ptvsd
 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)
예제 #3
0
 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)