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

Method test_simple_send_recv

python/examples/test_examples.py:73–79  ·  view source on GitHub ↗
(self, recv='simple_recv.py', send='simple_send.py')

Source from the content-addressed store, hash-verified

71 self.test_helloworld('helloworld_direct_tornado.py')
72
73 def test_simple_send_recv(self, recv='simple_recv.py', send='simple_send.py'):
74 with Popen([recv]) as r:
75 with run([send]):
76 pass
77 actual = [line.strip() for line in r.stdout]
78 expected = ["{'sequence': %i}" % (i + 1,) for i in range(100)]
79 self.assertEqual(actual, expected)
80
81 def test_client_server(self, client=['client.py'], server=['server.py'], sleep=0):
82 with Popen(server) as s:

Callers 1

test_tx_send_tx_recvMethod · 0.95

Calls 4

rangeFunction · 0.85
assertEqualMethod · 0.80
PopenClass · 0.70
runFunction · 0.70

Tested by

no test coverage detected