def METHOD_NAME(self):
    if os.name == 'posix':
        w, r = os.popen4([self.cmd])
        self.validate_output(self.teststr, self.expected, r, w)
        w, r = os.popen4(["echo", self.teststr])
        got = r.read()
        self.assertEqual(got, self.teststr + "\n")
    w, r = os.popen4(self.cmd)
    self.validate_output(self.teststr, self.expected, r, w)