/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 | 57 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/ |
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_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_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_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/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 | 129 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 …]
|
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) 153 self.assertEqual(sys.stdout.getvalue(), 163 self.assertEqual(stdout.getvalue(), plaintext.decode("ascii"))
|
D | test_wsgiref.py | 80 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 …]
|
D | test_pydoc.py | 550 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/ |
D | test_generator.py | 91 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/ |
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/autotest/server/site_tests/native_Benchmarks/ |
D | native_Benchmarks_common.py | 28 stdout.getvalue(), 29 stderr.getvalue()) 32 stdout_str = stdout.getvalue()
|
/external/tensorflow/tensorflow/python/tools/ |
D | saved_model_cli_test.py | 59 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 …]
|