Home
last modified time | relevance | path

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

12345678910>>...18

/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.py57 assert stream.getvalue() == textwrap.dedent("""\
93 logger.handlers[0].stream.getvalue())
102 logger.handlers[0].stream.getvalue())
110 logger.handlers[0].stream.getvalue())
126 logger.handlers[0].stream.getvalue())
132 logger.handlers[0].stream.getvalue())
143 assert 'this record passes through' in stream.getvalue()
146 assert 'records from children also pass' in stream.getvalue()
149 assert 'this one as well' in stream.getvalue()
152 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_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_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_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/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'))
214 self.assertEqual(result.getvalue(), xml_str(self.data, 'utf-8'))
401 self.assertEqual(result.getvalue(), self.xml("<doc></doc>"))
411 self.assertEqual(result.getvalue(), self.xml("<doc/>"))
423 self.assertEqual(result.getvalue(), self.xml("<doc>huhei</doc>"))
435 self.assertEqual(result.getvalue(), self.xml("<doc>huhei</doc>"))
447 self.assertEqual(result.getvalue(),
460 self.assertEqual(result.getvalue(),
478 self.assertEqual(result.getvalue(), self.xml(
497 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)
153 self.assertEqual(sys.stdout.getvalue(),
163 self.assertEqual(stdout.getvalue(), plaintext.decode("ascii"))
Dtest_wsgiref.py80 return out.getvalue(), err.getvalue()
612 self.assertEqual(h.stdout.getvalue(),
620 self.assertEqual(h.stdout.getvalue(),
627 self.assertEqual(h.stdout.getvalue(),
635 self.assertEqual(h.stdout.getvalue(),
651 self.assertEqual(h.stdout.getvalue(),
655 self.assertEqual(h.stderr.getvalue(),"")
659 self.assertEqual(h.stdout.getvalue(),
666 self.assertIn("AssertionError", h.stderr.getvalue())
676 self.assertEqual(h.stdout.getvalue(),
[all …]
Dtest_pydoc.py550 result = buf.getvalue().strip()
555 self.assertEqual('', output.getvalue())
556 self.assertEqual('', err.getvalue())
565 helptext = help_io.getvalue()
791 self.assertEqual(out.getvalue(), '')
792 self.assertEqual(err.getvalue(), '')
797 self.assertEqual(out.getvalue().strip(), 'syntaxerr')
798 self.assertEqual(err.getvalue(), '')
812 self.assertEqual(out.getvalue(), '')
813 self.assertEqual(err.getvalue(), '')
[all …]
/external/python/cpython3/Lib/test/test_email/
Dtest_generator.py91 self.assertEqual(s.getvalue(), self.typ(self.refold_long_expected[n]))
98 self.assertEqual(s.getvalue(), self.typ(self.refold_long_expected[n]))
106 self.assertEqual(s.getvalue(), self.typ(self.refold_long_expected[n]))
114 self.assertEqual(s.getvalue(), self.typ(self.refold_long_expected[0]))
122 self.assertEqual(s.getvalue(), self.typ(self.refold_all_expected[n]))
131 self.assertEqual(s.getvalue(), self.typ(expected))
140 self.assertEqual(s.getvalue(), self.typ(expected))
162 self.assertEqual(s.getvalue(), self.typ(expected))
169 self.assertEqual(s.getvalue(), self.typ(self.refold_long_expected[0]))
192 self.assertEqual(s.getvalue(), self.typ(expected))
[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/autotest/server/site_tests/native_Benchmarks/
Dnative_Benchmarks_common.py28 stdout.getvalue(),
29 stderr.getvalue())
32 stdout_str = stdout.getvalue()
/external/tensorflow/tensorflow/python/tools/
Dsaved_model_cli_test.py59 output = out.getvalue().strip()
143 self.assertEqual(err.getvalue().strip(), '')
151 output = out.getvalue().strip()
154 self.assertEqual(err.getvalue().strip(), '')
163 output = out.getvalue().strip()
175 self.assertEqual(err.getvalue().strip(), '')
194 output = out.getvalue().strip()
204 self.assertEqual(err.getvalue().strip(), '')
211 self.assertTrue('DT_FLOAT_REF' in out.getvalue().strip())
212 self.assertEqual(err.getvalue().strip(), '')
[all …]

12345678910>>...18