def test_run_list(self):
        args = ("sort", "-r")
        kwargs = {"stdin": "1\n2\n3"}
        result = phlsys_subprocess.run(*args, **kwargs)
        expect = phlsys_subprocess.RunResult(
            stdout=kwargs['stdin'][::-1] + "\n", stderr='')
        self.assertEqual(result, expect)
Passing valid list on stdin sorted in reverse order.
dataset/ETHPy150Open bloomberg/phabricator-tools/py/phl/phlsys_subprocess__t.py/PhlsysSubprocessTests.test_run_list