

def test_input(self):
    test_string = 'asdfQWER'
    r = envoy.connect('cat | tr [:lower:] [:upper:]')
    r.send(test_string)
    self.assertEqual(r.std_out, test_string.upper())
    self.assertEqual(r.status_code, 0)

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