Lines Matching refs:teststr
36 teststr = "ab cd\n" variable in Popen2Test
40 expected = teststr.strip()
61 def validate_output(self, teststr, expected_out, r, w, e=None): argument
62 w.write(teststr)
66 (teststr, got))
74 self.validate_output(self.teststr, self.expected, r, w)
79 self.validate_output(self.teststr, self.expected, r, w, e)
82 self.validate_output(self.teststr, self.expected, r, w, e)
88 self.validate_output(self.teststr, self.expected, r, w)
90 w, r = os.popen2(["echo", self.teststr])
92 self.assertEqual(got, self.teststr + "\n")
95 self.validate_output(self.teststr, self.expected, r, w)
101 self.validate_output(self.teststr, self.expected, r, w, e)
103 w, r, e = os.popen3(["echo", self.teststr])
105 self.assertEqual(got, self.teststr + "\n")
110 self.validate_output(self.teststr, self.expected, r, w, e)
115 self.validate_output(self.teststr, self.expected, r, w)
117 w, r = os.popen4(["echo", self.teststr])
119 self.assertEqual(got, self.teststr + "\n")
122 self.validate_output(self.teststr, self.expected, r, w)