(self, recv='simple_recv.py', send='simple_send.py')
| 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: |
no test coverage detected