Home
last modified time | relevance | path

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

12345678910>>...20

/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/fonttools/Tests/misc/
DxmlWriter_test.py15 self.assertEqual(HEADER + b"<!-- This&amp;that are &lt;comments&gt; -->", writer.file.getvalue())
21 writer.file.getvalue())
26 writer.file.getvalue())
32 writer.file.getvalue())
38 writer.file.getvalue())
44 writer.file.getvalue())
53 self.assertEqual(HEADER + b"foo&amp;bar", writer.file.getvalue())
65 writer.file.getvalue())
70 self.assertEqual(HEADER + b"<![CDATA[foo&bar]]>", writer.file.getvalue())
75 self.assertEqual(HEADER + b'<tag a="1" b="2"/>', writer.file.getvalue())
[all …]
DloggingTools_test.py52 assert stream.getvalue() == textwrap.dedent("""\
88 logger.handlers[0].stream.getvalue())
97 logger.handlers[0].stream.getvalue())
105 logger.handlers[0].stream.getvalue())
121 logger.handlers[0].stream.getvalue())
127 logger.handlers[0].stream.getvalue())
138 assert 'this record passes through' in stream.getvalue()
141 assert 'records from children also pass' in stream.getvalue()
144 assert 'this one as well' in stream.getvalue()
147 assert 'also this one' in stream.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/yapf/yapftests/
Dmain_test.py42 def getvalue(self): member in IO.Buffer
43 return self.string_io.getvalue()
51 def getvalue(self): member in IO
52 return self.buffer.getvalue()
95 self.assertEqual(out.getvalue(), '')
96 self.assertEqual(err.getvalue(), expected_message)
112 self.assertEqual(out.getvalue(), code)
121 self.assertEqual(out.getvalue(), chromium_code)
134 help_message = out.getvalue()
144 self.assertEqual(version, out.getvalue())
/external/python/cpython2/Lib/test/
Dtest_memoryio.py86 self.assertEqual(memio.getvalue(), buf)
89 self.assertEqual(memio.getvalue(), buf)
99 self.assertEqual(memio.getvalue(), buf * 100)
101 self.assertEqual(memio.getvalue(), buf * 100)
104 self.assertEqual(memio.getvalue(), buf)
124 self.assertEqual(memio.getvalue(), buf[:6])
126 self.assertEqual(memio.getvalue(), buf[:4])
129 self.assertEqual(memio.getvalue(), buf[:4])
133 self.assertEqual(memio.getvalue(), buf[:4] + buf)
144 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.py137 self.assertRegexpMatches(err_out.getvalue(), "line 1")
138 self.assertRegexpMatches(err_out.getvalue(),
143 self.assertRegexpMatches(err_out.getvalue(), 'Traceback')
144 self.assertRegexpMatches(err_out.getvalue(), r'import bad\)syntax')
145 self.assertRegexpMatches(err_out.getvalue(), 'SyntaxError')
152 self.assertRegexpMatches(err_out.getvalue(), "line 2")
153 self.assertRegexpMatches(err_out.getvalue(),
156 self.assertRegexpMatches(err_out.getvalue(), 'Traceback')
157 self.assertRegexpMatches(err_out.getvalue(), 'ImportError')
166 self.assertRegexpMatches(err_out.getvalue(), "line 1")
[all …]
Dtest_sax.py124 self.assertEqual(result.getvalue(), xml_bytes(self.data, 'utf-8'))
196 self.assertEqual(result.getvalue(), xml_bytes(self.data, 'utf-8'))
359 self.assertEqual(result.getvalue(), start + "<doc></doc>")
371 self.assertEqual(result.getvalue(), start + "<doc>huhei</doc>")
383 self.assertEqual(result.getvalue(), start + "<?test data?><doc></doc>")
395 self.assertEqual(result.getvalue(),
413 self.assertEqual(result.getvalue(), start +
432 self.assertEqual(result.getvalue(), (
447 self.assertEqual(result.getvalue(),
461 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.py27 self.assertEqual(out.getvalue(), encodedtextwrapped % (0666, "t1"))
31 self.assertEqual(out.getvalue(), encodedtextwrapped % (0644, "t1"))
37 self.assertEqual(out.getvalue(), plaintext)
45 self.assertEqual(out.getvalue(), plaintext)
79 self.assertEqual(out.getvalue(), plaintext)
100 sys.stdout.getvalue(),
108 self.assertEqual(sys.stdout.getvalue(), plaintext)
/external/python/pybind11/tests/
Dtest_iostream.py114 assert stream.getvalue() == ""
122 assert stream.getvalue() == msg
133 assert stream.getvalue() == ""
141 assert stream.getvalue() == msg
153 assert stream.getvalue() == "ac"
170 assert stream.getvalue() == ""
178 assert stream.getvalue() == msg
185 assert stream.getvalue() == ""
200 assert stream.getvalue() == msg2
217 assert stream.getvalue() == msg
[all …]
/external/python/cpython3/Lib/test/test_email/
Dtest_generator.py92 self.assertEqual(s.getvalue(), self.typ(self.refold_long_expected[n]))
99 self.assertEqual(s.getvalue(), self.typ(self.refold_long_expected[n]))
107 self.assertEqual(s.getvalue(), self.typ(self.refold_long_expected[n]))
115 self.assertEqual(s.getvalue(), self.typ(self.refold_long_expected[0]))
123 self.assertEqual(s.getvalue(), self.typ(self.refold_all_expected[n]))
132 self.assertEqual(s.getvalue(), self.typ(expected))
141 self.assertEqual(s.getvalue(), self.typ(expected))
163 self.assertEqual(s.getvalue(), self.typ(expected))
170 self.assertEqual(s.getvalue(), self.typ(self.refold_long_expected[0]))
193 self.assertEqual(s.getvalue(), self.typ(expected))
[all …]
/external/python/cpython3/Lib/test/
Dtest_memoryio.py90 self.assertEqual(memio.getvalue(), buf)
93 self.assertEqual(memio.getvalue(), buf)
103 self.assertEqual(memio.getvalue(), buf * 100)
105 self.assertEqual(memio.getvalue(), buf * 100)
108 self.assertEqual(memio.getvalue(), buf)
129 self.assertEqual(memio.getvalue(), buf[:8])
131 self.assertEqual(memio.getvalue(), buf[:6])
133 self.assertEqual(memio.getvalue(), buf[:4])
137 self.assertEqual(memio.getvalue(), buf[:4] + buf)
149 self.assertEqual(memio.getvalue(), buf)
[all …]
Dtest_sax.py129 self.assertEqual(result.getvalue(), xml_str(self.data, 'utf-8'))
218 self.assertEqual(result.getvalue(), xml_str(self.data, 'utf-8'))
440 self.assertEqual(result.getvalue(), self.xml("<doc></doc>"))
450 self.assertEqual(result.getvalue(), self.xml("<doc/>"))
462 self.assertEqual(result.getvalue(), self.xml("<doc>huhei</doc>"))
474 self.assertEqual(result.getvalue(), self.xml("<doc>huhei</doc>"))
486 self.assertEqual(result.getvalue(),
499 self.assertEqual(result.getvalue(),
517 self.assertEqual(result.getvalue(), self.xml(
536 self.assertEqual(result.getvalue(),
[all …]
Dtest_uu.py44 def getvalue(self): member in FakeIO
46 return self.buffer.getvalue().decode(self._encoding, self._errors)
64 self.assertEqual(out.getvalue(), encodedtextwrapped(0o666, "t1"))
68 self.assertEqual(out.getvalue(), encodedtextwrapped(0o644, "t1"))
72 self.assertEqual(out.getvalue(), encodedtextwrapped(0o666, "t1", True))
81 self.assertEqual(out.getvalue(), plaintext)
89 self.assertEqual(out.getvalue(), plaintext)
132 self.assertEqual(out.getvalue(), plaintext)
146 self.assertIn(safefilename, out.getvalue())
162 self.assertEqual(sys.stdout.getvalue(),
[all …]
Dtest_wsgiref.py81 return out.getvalue(), err.getvalue()
651 self.assertEqual(h.stdout.getvalue(),
659 self.assertEqual(h.stdout.getvalue(),
666 self.assertEqual(h.stdout.getvalue(),
674 self.assertEqual(h.stdout.getvalue(),
690 self.assertEqual(h.stdout.getvalue(),
694 self.assertEqual(h.stderr.getvalue(),"")
698 self.assertEqual(h.stdout.getvalue(),
705 self.assertIn("AssertionError", h.stderr.getvalue())
715 self.assertEqual(h.stdout.getvalue(),
[all …]
/external/chromium-trace/catapult/common/py_trace_event/py_trace_event/trace_event_impl/
Dperfetto_trace_writer_unittest.py33 self.assertEqual(expected_output, result.getvalue())
59 self.assertEqual(expected_output, result.getvalue())
79 self.assertEqual(expected_output, result.getvalue())
105 self.assertEqual(expected_output, result.getvalue())
116 self.assertEqual(expected_output, result.getvalue())
130 self.assertEqual(expected_output, result.getvalue())
/external/llvm-project/lldb/test/API/terminal/
DTestSTTYBeforeAndAfter.py97 print(child_send1.getvalue())
99 print(child_read1.getvalue())
101 print(child_send2.getvalue())
103 print(child_read2.getvalue())
105 stty_output1_lines = child_read1.getvalue().splitlines()
106 stty_output2_lines = child_read2.getvalue().splitlines()
/external/antlr/runtime/Python3/tests/
Dt054main.py66 self.assertEqual(len(stdout.getvalue().splitlines()), 3)
92 self.assertEqual(len(stdout.getvalue().splitlines()), 3)
118 self.assertEqual(len(stdout.getvalue().splitlines()), 3)
146 stdout = stdout.getvalue()
177 stdout = stdout.getvalue().strip()
218 stdout = stdout.getvalue().strip()
261 stdout = stdout.getvalue().strip()
304 stdout = stdout.getvalue().strip()
/external/antlr/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/llvm-project/debuginfo-tests/dexter/dex/utils/
DPrettyOutputBase.py293 self.assertEqual(stream.py.getvalue(), '[R]hello[/R]')
299 self.assertEqual(stream.py.getvalue(), '[Y]hello[/Y]')
305 self.assertEqual(stream.py.getvalue(), '[G]hello[/G]')
311 self.assertEqual(stream.py.getvalue(), '[B]hello[/B]')
317 self.assertEqual(stream.py.getvalue(), '[D]hello[/D]')
326 self.assertEqual(stream.py.getvalue(),
331 self.assertEqual(stream.py.getvalue(),
336 self.assertEqual(stream.py.getvalue(),
342 self.assertEqual(stream.py.getvalue(),
352 self.assertEqual(stream.py.getvalue(),
[all …]
/external/python/rsa/tests/
Dtest_cli.py37 return buf.buffer.getvalue()
129 self.assertTrue('128-bit key' in err.getvalue())
138 self.assertTrue('128-bit key' in err.getvalue())
141 self.assertTrue('test_cli_privkey_out.pem' in err.getvalue())
154 self.assertTrue('128-bit key' in err.getvalue())
157 self.assertTrue('test_cli_privkey_out.der' in err.getvalue())
172 self.assertTrue('256-bit key' in err.getvalue())
175 self.assertTrue('test_cli_privkey_out.pem' in err.getvalue())
176 self.assertTrue('test_cli_pubkey_out.pem' in err.getvalue())

12345678910>>...20