Home
last modified time | relevance | path

Searched refs:getvalue (Results 1 – 25 of 194) sorted by relevance

12345678

/external/ply/ply/test/
Dtestyacc.py99 result = sys.stderr.getvalue()
106 result = sys.stderr.getvalue()
116 result = sys.stderr.getvalue()
122 result = sys.stderr.getvalue()
129 result = sys.stderr.getvalue()
138 result = sys.stderr.getvalue()
150 result = sys.stderr.getvalue()
156 result = sys.stderr.getvalue()
168 result = sys.stderr.getvalue()
176 result = sys.stderr.getvalue()
[all …]
Dtestlex.py99 result = sys.stderr.getvalue()
104 result = sys.stderr.getvalue()
110 result = sys.stderr.getvalue()
116 result = sys.stderr.getvalue()
122 result = sys.stderr.getvalue()
129 result = sys.stderr.getvalue()
135 result = sys.stderr.getvalue()
142 result = sys.stderr.getvalue()
148 result = sys.stderr.getvalue()
154 result = sys.stderr.getvalue()
[all …]
/external/libxml2/python/tests/
Doutbuf.py18 if f.getvalue() != "foobar":
36 if f.getvalue() != expected:
38 print(' got: %s' % repr(f.getvalue()))
60 if f.getvalue() != expected[i]:
62 print(' got: %s' % repr(f.getvalue()))
81 if f.getvalue() != expected:
83 print(' got: %s' % repr(f.getvalue()))
89 if f.getvalue() != expected:
91 print(' got: %s' % repr(f.getvalue()))
/external/python/cpython2/Lib/test/
Dtest_memoryio.py85 self.assertEqual(memio.getvalue(), buf)
88 self.assertEqual(memio.getvalue(), buf)
98 self.assertEqual(memio.getvalue(), buf * 100)
100 self.assertEqual(memio.getvalue(), buf * 100)
103 self.assertEqual(memio.getvalue(), buf)
123 self.assertEqual(memio.getvalue(), buf[:6])
125 self.assertEqual(memio.getvalue(), buf[:4])
128 self.assertEqual(memio.getvalue(), buf[:4])
132 self.assertEqual(memio.getvalue(), buf[:4] + buf)
143 self.assertEqual(memio.getvalue(), buf)
[all …]
Dtest_multibytecodec.py170 self.assertEqual(s.getvalue(), '123')
172 self.assertEqual(s.getvalue(), '123\x907\x959')
174 self.assertEqual(s.getvalue(), '123\x907\x959')
176 self.assertEqual(s.getvalue(),
179 self.assertEqual(s.getvalue(),
182 self.assertEqual(s.getvalue(),
190 self.assertEqual(s.getvalue(), '123')
192 self.assertEqual(s.getvalue(), '123\xf0\x92\x8d\x85')
197 self.assertEqual(s.getvalue(), '123\xf0\x92\x8d\x85')
199 self.assertEqual(s.getvalue(),
[all …]
Dtest_StringIO.py44 self.assertEqual(f.getvalue(), 'abcuvwxyz!')
50 self.assertEqual(f.getvalue(), 'abc')
65 eq(f.getvalue(), 'abcdefghij')
67 eq(f.getvalue(), 'abcde')
69 eq(f.getvalue(), 'abcdexyz')
108 self.assertRaises(ValueError, self._fp.getvalue)
146 self.assertEqual(len(f.getvalue()), size)
165 s = f.getvalue()
176 self.assertEqual(f.getvalue(), '\x00\x01\x02')
188 s = f.getvalue()
[all …]
Dtest_site.py120 self.assertRegexpMatches(err_out.getvalue(), "line 1")
121 self.assertRegexpMatches(err_out.getvalue(),
126 self.assertRegexpMatches(err_out.getvalue(), 'Traceback')
127 self.assertRegexpMatches(err_out.getvalue(), r'import bad\)syntax')
128 self.assertRegexpMatches(err_out.getvalue(), 'SyntaxError')
135 self.assertRegexpMatches(err_out.getvalue(), "line 2")
136 self.assertRegexpMatches(err_out.getvalue(),
139 self.assertRegexpMatches(err_out.getvalue(), 'Traceback')
140 self.assertRegexpMatches(err_out.getvalue(), 'ImportError')
149 self.assertRegexpMatches(err_out.getvalue(), "line 1")
[all …]
Dtest_sax.py123 self.assertEqual(result.getvalue(), xml_bytes(self.data, 'utf-8'))
180 self.assertEqual(result.getvalue(), xml_bytes(self.data, 'utf-8'))
343 self.assertEqual(result.getvalue(), start + "<doc></doc>")
355 self.assertEqual(result.getvalue(), start + "<doc>huhei</doc>")
367 self.assertEqual(result.getvalue(), start + "<?test data?><doc></doc>")
379 self.assertEqual(result.getvalue(),
397 self.assertEqual(result.getvalue(), start +
416 self.assertEqual(result.getvalue(), (
431 self.assertEqual(result.getvalue(),
445 self.assertEqual(result.getvalue(), start + "<doc> </doc>")
[all …]
Dtest_wsgiref.py59 return out.getvalue(), err.getvalue()
445 self.assertEqual(h.stdout.getvalue(),
453 self.assertEqual(h.stdout.getvalue(),
461 self.assertEqual(h.stdout.getvalue(),
477 self.assertEqual(h.stdout.getvalue(),
481 self.assertEqual(h.stderr.getvalue(),"")
485 self.assertEqual(h.stdout.getvalue(),
491 self.assertNotEqual(h.stderr.getvalue().find("AssertionError"), -1)
501 self.assertEqual(h.stdout.getvalue(),
504 self.assertNotEqual(h.stderr.getvalue().find("AssertionError"), -1)
[all …]
Dtest_uu.py26 self.assertEqual(out.getvalue(), encodedtextwrapped % (0666, "t1"))
30 self.assertEqual(out.getvalue(), encodedtextwrapped % (0644, "t1"))
36 self.assertEqual(out.getvalue(), plaintext)
44 self.assertEqual(out.getvalue(), plaintext)
78 self.assertEqual(out.getvalue(), plaintext)
99 sys.stdout.getvalue(),
107 self.assertEqual(sys.stdout.getvalue(), plaintext)
Dtest_cmd.py198 self.assertMultiLineEqual(output.getvalue(),
210 self.assertMultiLineEqual(output.getvalue(),
219 self.assertMultiLineEqual(output.getvalue(),
Dtest_atexit.py27 self.assertEqual(self.subst_io.getvalue(),
39 self.assertEqual(self.subst_io.getvalue(), "h3\nh2\nh1\n")
51 self.assertEqual(self.subst_io.getvalue(), "h2\nh1\n")
Dtest_pydoc.py471 self.assertEqual(out.getvalue(), '')
472 self.assertEqual(err.getvalue(), '')
477 self.assertEqual(out.getvalue().strip(), 'syntaxerr')
478 self.assertEqual(err.getvalue(), '')
492 self.assertEqual(out.getvalue(), '')
493 self.assertEqual(err.getvalue(), '')
525 helptext = help_io.getvalue()
619 self.assertEqual(output.getvalue(), 'wrote Q.html\n')
/external/antlr/antlr-3.4/runtime/Python/tests/
Dt054main.py73 self.failUnlessEqual(len(stdout.getvalue().splitlines()), 3)
99 self.failUnlessEqual(len(stdout.getvalue().splitlines()), 3)
125 self.failUnlessEqual(len(stdout.getvalue().splitlines()), 3)
153 stdout = stdout.getvalue()
184 stdout = stdout.getvalue().strip()
225 stdout = stdout.getvalue().strip()
268 stdout = stdout.getvalue().strip()
313 stdout = stdout.getvalue().strip()
/external/autotest/server/site_tests/native_Benchmarks/
Dnative_Benchmarks_common.py28 stdout.getvalue(),
29 stderr.getvalue())
32 stdout_str = stdout.getvalue()
/external/autotest/server/site_tests/telemetry_Crosperf/
Dtelemetry_Crosperf.py81 stdout.getvalue(), stderr.getvalue())
86 stdout_str = stdout.getvalue()
183 stdout_str = stdout.getvalue()
184 stderr_str = stderr.getvalue()
/external/python/cpython2/Lib/unittest/test/
Dtest_result.py428 self.assertEqual(out_stream.getvalue(), 'foo\n')
429 self.assertEqual(err_stream.getvalue(), 'bar\n')
431 self.assertEqual(result._original_stdout.getvalue(), '')
432 self.assertEqual(result._original_stderr.getvalue(), '')
440 self.assertEqual(result._original_stdout.getvalue(), '')
441 self.assertEqual(result._original_stderr.getvalue(), '')
443 self.assertEqual(out_stream.getvalue(), '')
444 self.assertEqual(err_stream.getvalue(), '')
495 self.assertEqual(result._original_stdout.getvalue(), expectedOutMessage)
496 self.assertEqual(result._original_stderr.getvalue(), expectedErrMessage)
/external/python/cpython2/Lib/lib2to3/tests/
Dtest_main.py61 output = out.getvalue()
64 "your terminal", err.getvalue())
97 stderr = err.getvalue()
125 stderr = err.getvalue()
140 stderr = err.getvalue()
/external/python/cpython2/Doc/library/
Dstringio.rst25 :exc:`UnicodeError` to be raised when :meth:`getvalue` is called.
30 .. method:: StringIO.getvalue()
53 contents = output.getvalue()
56 # .getvalue() will now raise an exception.
122 contents = output.getvalue()
125 # .getvalue() will now raise an exception.
/external/python/cpython2/Lib/unittest/
Dresult.py87 output = sys.stdout.getvalue()
88 error = sys.stderr.getvalue()
167 output = sys.stdout.getvalue()
168 error = sys.stderr.getvalue()
/external/autotest/server/cros/
Dtelemetry_runner.py288 stdout = output.getvalue()
289 stderr = error_output.getvalue()
464 stdout.getvalue(), stderr.getvalue())
469 stdout_str = stdout.getvalue()
/external/python/cpython2/Demo/cgi/
Dwiki.py10 cmd = form.getvalue("cmd", "view")
11 page = form.getvalue("page", "FrontPage")
65 self.data = form.getvalue("text", "").strip()
/external/autotest/client/cros/cellular/
Dlabconfig_write_stanzas58 print f.dhcp.getvalue()
60 print f.dns.getvalue()
/external/python/cpython2/Lib/encodings/
Dquopri_codec.py25 output = g.getvalue()
40 output = g.getvalue()
/external/python/cpython2/Lib/email/
Dgenerator.py118 self._fp.write(sfp.getvalue())
204 msgtexts.append(s.getvalue())
262 text = s.getvalue()
289 payload = s.getvalue()

12345678