

def test_status_code_success(self):
    c = envoy.connect('sleep 1')
    time.sleep(2)
    self.assertEqual(c.status_code, 0)

dataset/ETHPy150Open kennethreitz/envoy/test_envoy.py ConnectedCommandTests.test_status_code_success/original