/external/ply/ply/test/ |
D | testyacc.py | 99 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 …]
|
D | testlex.py | 99 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/ |
D | xmlWriter_test.py | 15 self.assertEqual(HEADER + b"<!-- This&that are <comments> -->", 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&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 …]
|
D | loggingTools_test.py | 53 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/ |
D | outbuf.py | 18 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/ |
D | main_test.py | 42 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/ |
D | test_memoryio.py | 86 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 …]
|
D | test_multibytecodec.py | 170 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 …]
|
D | test_StringIO.py | 44 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 …]
|
D | test_site.py | 137 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 …]
|
D | test_sax.py | 124 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 …]
|
D | test_wsgiref.py | 59 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 …]
|
D | test_uu.py | 27 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)
|
D | test_atexit.py | 32 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/ |
D | test_iostream.py | 110 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/ |
D | test_generator.py | 92 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/ |
D | test_memoryio.py | 90 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 …]
|
D | test_sax.py | 128 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 …]
|
D | test_uu.py | 44 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 …]
|
D | test_wsgiref.py | 80 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/ |
D | t054main.py | 73 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/ |
D | t054main.py | 66 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/ |
D | test_cli.py | 32 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/ |
D | perfetto_trace_writer_unittest.py | 32 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/ |
D | native_Benchmarks_common.py | 28 stdout.getvalue(), 29 stderr.getvalue()) 32 stdout_str = stdout.getvalue()
|