Home | History | Annotate | Download | only in test

Lines Matching refs:teststr

37     teststr = "ab cd\n"

41 expected = teststr.strip()
62 def validate_output(self, teststr, expected_out, r, w, e=None):
63 w.write(teststr)
67 (teststr, got))
75 self.validate_output(self.teststr, self.expected, r, w)
80 self.validate_output(self.teststr, self.expected, r, w, e)
83 self.validate_output(self.teststr, self.expected, r, w, e)
89 self.validate_output(self.teststr, self.expected, r, w)
91 w, r = os.popen2(["echo", self.teststr])
93 self.assertEqual(got, self.teststr + "\n")
96 self.validate_output(self.teststr, self.expected, r, w)
102 self.validate_output(self.teststr, self.expected, r, w, e)
104 w, r, e = os.popen3(["echo", self.teststr])
106 self.assertEqual(got, self.teststr + "\n")
111 self.validate_output(self.teststr, self.expected, r, w, e)
116 self.validate_output(self.teststr, self.expected, r, w)
118 w, r = os.popen4(["echo", self.teststr])
120 self.assertEqual(got, self.teststr + "\n")
123 self.validate_output(self.teststr, self.expected, r, w)