MCPcopy Create free account
hub / github.com/apache/qpid-proton / test_selected_recv

Method test_selected_recv

python/examples/test_examples.py:160–172  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

158 self.assertEqual(actual, expected)
159
160 def test_selected_recv(self):
161 with run(['colour_send.py']):
162 pass
163
164 with run(['selected_recv.py', '-m', '50']) as r:
165 actual = [line.strip() for line in r.stdout]
166 expected = ["green %i" % (i + 1) for i in range(100) if i % 2 == 0]
167 self.assertEqual(actual, expected)
168
169 with run(['simple_recv.py', '-m', '50']) as r:
170 actual = [line.strip() for line in r.stdout]
171 expected = ["red %i" % (i + 1) for i in range(100) if i % 2 == 1]
172 self.assertEqual(actual, expected)

Callers

nothing calls this directly

Calls 3

rangeFunction · 0.85
assertEqualMethod · 0.80
runFunction · 0.70

Tested by

no test coverage detected