def pretty_print(text): cmd = "{prg} {options}".format(prg=cfg.TIDY, options=OPTIONS) return process.get_cmd_output_input_from_stdin(cmd, text)
def test_get_cmd_output_input_from_stdin(): res = process.get_cmd_output_input_from_stdin("grep es", "test") assert res == 'test\n' res = process.get_cmd_output_input_from_stdin("wc -w", "a b c d e") assert res == '5\n'
def test_get_cmd_output_input_from_stdin(): res = process.get_cmd_output_input_from_stdin("grep es", "test") assert res == 'test\n' res = process.get_cmd_output_input_from_stdin("wc -w", "a b c d e") assert res == '5\n'
def pretty_print(text): cmd = "{prg} {options}".format(prg=cfg.TIDY, options=OPTIONS) return process.get_cmd_output_input_from_stdin(cmd, text)