

def test_timeout(self):
    r = envoy.run('yes | head', timeout=1)
    self.assertEqual(r.std_out, 'y\ny\ny\ny\ny\ny\ny\ny\ny\ny\n')
    self.assertEqual(r.status_code, 0)

dataset/ETHPy150Open kennethreitz/envoy/test_envoy.py SimpleTest.test_timeout/original