Home
last modified time | relevance | path

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

12345678910>>...19

/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.py53 assert stream.getvalue() == textwrap.dedent("""\
89 logger.handlers[0].stream.getvalue())
98 logger.handlers[0].stream.getvalue())
106 logger.handlers[0].stream.getvalue())
122 logger.handlers[0].stream.getvalue())
128 logger.handlers[0].stream.getvalue())
139 assert 'this record passes through' in stream.getvalue()
142 assert 'records from children also pass' in stream.getvalue()
145 assert 'this one as well' in stream.getvalue()
148 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)
Dtest_atexit.py32 self.assertEqual(self.subst_io.getvalue(),
44 self.assertEqual(self.subst_io.getvalue(), "h3\nh2\nh1\n")
56 self.assertEqual(self.subst_io.getvalue(), "h2\nh1\n")
68 self.assertEqual(self.stream.getvalue(), '')
/external/python/pybind11/tests/
Dtest_iostream.py110 assert stream.getvalue() == ''
118 assert stream.getvalue() == msg
129 assert stream.getvalue() == ''
137 assert stream.getvalue() == msg
149 assert stream.getvalue() == 'ac'
166 assert stream.getvalue() == ''
174 assert stream.getvalue() == msg
181 assert stream.getvalue() == ''
196 assert stream.getvalue() == msg2
213 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.py128 self.assertEqual(result.getvalue(), xml_str(self.data, 'utf-8'))
217 self.assertEqual(result.getvalue(), xml_str(self.data, 'utf-8'))
439 self.assertEqual(result.getvalue(), self.xml("<doc></doc>"))
449 self.assertEqual(result.getvalue(), self.xml("<doc/>"))
461 self.assertEqual(result.getvalue(), self.xml("<doc>huhei</doc>"))
473 self.assertEqual(result.getvalue(), self.xml("<doc>huhei</doc>"))
485 self.assertEqual(result.getvalue(),
498 self.assertEqual(result.getvalue(),
516 self.assertEqual(result.getvalue(), self.xml(
535 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.py80 return out.getvalue(), err.getvalue()
650 self.assertEqual(h.stdout.getvalue(),
658 self.assertEqual(h.stdout.getvalue(),
665 self.assertEqual(h.stdout.getvalue(),
673 self.assertEqual(h.stdout.getvalue(),
689 self.assertEqual(h.stdout.getvalue(),
693 self.assertEqual(h.stderr.getvalue(),"")
697 self.assertEqual(h.stdout.getvalue(),
704 self.assertIn("AssertionError", h.stderr.getvalue())
714 self.assertEqual(h.stdout.getvalue(),
[all …]
/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/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/python/rsa/tests/
Dtest_cli.py32 return out.getvalue()
34 return out.buffer.getvalue()
139 self.assertTrue('128-bit key' in err.getvalue())
148 self.assertTrue('128-bit key' in err.getvalue())
151 self.assertTrue('test_cli_privkey_out.pem' in err.getvalue())
164 self.assertTrue('128-bit key' in err.getvalue())
167 self.assertTrue('test_cli_privkey_out.der' in err.getvalue())
182 self.assertTrue('256-bit key' in err.getvalue())
185 self.assertTrue('test_cli_privkey_out.pem' in err.getvalue())
186 self.assertTrue('test_cli_pubkey_out.pem' in err.getvalue())
/external/chromium-trace/catapult/common/py_trace_event/py_trace_event/trace_event_impl/
Dperfetto_trace_writer_unittest.py32 self.assertEqual(expected_output, result.getvalue())
57 self.assertEqual(expected_output, result.getvalue())
78 self.assertEqual(expected_output, result.getvalue())
/external/autotest/server/site_tests/native_Benchmarks/
Dnative_Benchmarks_common.py28 stdout.getvalue(),
29 stderr.getvalue())
32 stdout_str = stdout.getvalue()

12345678910>>...19