Home
last modified time | relevance | path

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

123456789

/third_party/ninja/misc/
Dninja_syntax_test.py38 self.assertEqual(LONGWORD + '\n', self.out.getvalue())
46 self.out.getvalue())
52 self.out.getvalue())
64 self.out.getvalue())
72 self.out.getvalue())
79 self.out.getvalue())
89 self.out.getvalue())
98 self.out.getvalue())
107 self.out.getvalue())
116 self.out.getvalue())
[all …]
/third_party/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()))
/third_party/PyYAML/lib/yaml/
D__init__.py164 getvalue = None
167 getvalue = stream.getvalue
175 if getvalue:
176 return getvalue()
187 getvalue = None
193 getvalue = stream.getvalue
205 if getvalue:
206 return getvalue()
225 getvalue = None
231 getvalue = stream.getvalue
[all …]
/third_party/python/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 …]
/third_party/python/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_exceptions.py1499 report = stderr.getvalue()
1680 self.assertIn(suggestion, err.getvalue())
1690 self.assertIn("'global_for_suggestions'?", err.getvalue())
1700 self.assertIn("'ZeroDivisionError'?", err.getvalue())
1713 self.assertNotIn("somethingverywronghehe", err.getvalue())
1724 self.assertNotIn("you mean", err.getvalue())
1725 self.assertNotIn("vvv", err.getvalue())
1726 self.assertNotIn("mom", err.getvalue())
1727 self.assertNotIn("'id'", err.getvalue())
1728 self.assertNotIn("'w'", err.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_sax.py133 self.assertEqual(result.getvalue(), xml_str(self.data, 'utf-8'))
222 self.assertEqual(result.getvalue(), xml_str(self.data, 'utf-8'))
444 self.assertEqual(result.getvalue(), self.xml("<doc></doc>"))
454 self.assertEqual(result.getvalue(), self.xml("<doc/>"))
466 self.assertEqual(result.getvalue(), self.xml("<doc>huhei</doc>"))
478 self.assertEqual(result.getvalue(), self.xml("<doc>huhei</doc>"))
490 self.assertEqual(result.getvalue(),
503 self.assertEqual(result.getvalue(),
521 self.assertEqual(result.getvalue(), self.xml(
540 self.assertEqual(result.getvalue(),
[all …]
Dtest_wsgiref.py82 return out.getvalue(), err.getvalue()
652 self.assertEqual(h.stdout.getvalue(),
660 self.assertEqual(h.stdout.getvalue(),
667 self.assertEqual(h.stdout.getvalue(),
675 self.assertEqual(h.stdout.getvalue(),
691 self.assertEqual(h.stdout.getvalue(),
695 self.assertEqual(h.stderr.getvalue(),"")
699 self.assertEqual(h.stdout.getvalue(),
706 self.assertIn("AssertionError", h.stderr.getvalue())
716 self.assertEqual(h.stdout.getvalue(),
[all …]
Dtest_pydoc.py679 result = buf.getvalue().strip()
684 self.assertEqual('', output.getvalue())
685 self.assertEqual('', err.getvalue())
694 helptext = help_io.getvalue()
704 helptext = help_io.getvalue()
921 self.assertEqual(out.getvalue(), '')
922 self.assertEqual(err.getvalue(), '')
927 self.assertEqual(out.getvalue().strip(), 'syntaxerr')
928 self.assertEqual(err.getvalue(), '')
942 self.assertEqual(out.getvalue(), '')
[all …]
Dtest_traceback.py237 self.assertEqual(output.getvalue(), "Exception: projector\n")
242 self.assertEqual(output.getvalue(), "Exception: projector\n")
263 self.assertEqual(excfile.getvalue(), NONE_EXC_STRING)
267 self.assertEqual(excfile.getvalue(), NONE_EXC_STRING)
271 self.assertEqual(excfile.getvalue(), NONE_EXC_STRING)
317 python_fmt = file_.getvalue()
334 self.assertEqual(tbstderr.getvalue(), tbfile.getvalue())
336 self.assertEqual(excstderr.getvalue(), excfile.getvalue())
337 self.assertEqual(excfmt, excfile.getvalue())
364 self.assertEqual(ststderr.getvalue(), stfile.getvalue())
[all …]
Dtest_cmd.py195 self.assertMultiLineEqual(output.getvalue(),
207 self.assertMultiLineEqual(output.getvalue(),
216 self.assertMultiLineEqual(output.getvalue(),
Dtest_site.py145 self.assertRegex(err_out.getvalue(), "line 1")
146 self.assertRegex(err_out.getvalue(),
151 self.assertRegex(err_out.getvalue(), 'Traceback')
152 self.assertRegex(err_out.getvalue(), r'import bad-syntax')
153 self.assertRegex(err_out.getvalue(), 'SyntaxError')
160 self.assertRegex(err_out.getvalue(), "line 2")
161 self.assertRegex(err_out.getvalue(),
164 self.assertRegex(err_out.getvalue(), 'Traceback')
165 self.assertRegex(err_out.getvalue(), 'ModuleNotFoundError')
179 self.assertEqual(err_out.getvalue(), "")
[all …]
Dtest_tabnanny.py116 self.assertEqual(stderr.getvalue() , expected)
163 self.assertEqual(stdout.getvalue(), out)
164 self.assertEqual(stderr.getvalue(), err)
189 stdout = stdout.getvalue()
193 self.assertEqual(stderr.getvalue(), "")
Dtest_multibytecodec.py329 self.assertEqual(s.getvalue(), b'123')
331 self.assertEqual(s.getvalue(), b'123\x907\x959')
333 self.assertEqual(s.getvalue(),
340 self.assertEqual(s.getvalue(), b'123')
342 self.assertEqual(s.getvalue(), b'123\xf0\x92\x8d\x85')
344 self.assertEqual(s.getvalue(),
352 self.assertEqual(s.getvalue(), b'abcd')
Dtest_timeit.py235 self.assert_exc_string(s.getvalue(), 'ZeroDivisionError')
252 return s.getvalue()
353 self.assertEqual(error_stringio.getvalue(),
359 self.assert_exc_string(error_stringio.getvalue(), 'ZeroDivisionError')
364 self.assert_exc_string(error_stringio.getvalue(), 'ZeroDivisionError')
397 self.assertEqual(s.getvalue(), expected)
/third_party/node/test/tools/
Dtest_checkimports.py34 output = out.getvalue()
48 output = out.getvalue()
55 output = out.getvalue()
62 output = out.getvalue()
73 output = out.getvalue()
/third_party/musl/libc-test/src/functionalext/supplement/process/
Dposix_spawnattr_getflags.c31 short getvalue = 0; in posix_spawnattr_getflags_0100() local
34 ret = posix_spawnattr_getflags(&spawnattr, &getvalue); in posix_spawnattr_getflags_0100()
36 EXPECT_EQ("posix_spawnattr_getflags_0100", getvalue, POSIX_SPAWN_RESETIDS); in posix_spawnattr_getflags_0100()
Dposix_spawnattr_getpgroup.c31 pid_t getvalue = -1; in posix_spawnattr_getpgroup_0100() local
34 ret = posix_spawnattr_getpgroup(&spawnattr, &getvalue); in posix_spawnattr_getpgroup_0100()
36 EXPECT_EQ("posix_spawnattr_getpgroup_0100", getvalue, group); in posix_spawnattr_getpgroup_0100()
/third_party/python/Lib/unittest/test/
Dtest_result.py48 def getvalue(self): member in BufferedWriter
469 self.assertTrue(stream.getvalue().endswith('\n\nOK\n'))
594 self.assertEqual(out_stream.getvalue(), 'foo\n')
595 self.assertEqual(err_stream.getvalue(), 'bar\n')
597 self.assertEqual(result._original_stdout.getvalue(), '')
598 self.assertEqual(result._original_stderr.getvalue(), '')
606 self.assertEqual(result._original_stdout.getvalue(), '')
607 self.assertEqual(result._original_stderr.getvalue(), '')
609 self.assertEqual(out_stream.getvalue(), '')
610 self.assertEqual(err_stream.getvalue(), '')
[all …]
/third_party/python/Lib/lib2to3/tests/
Dtest_main.py51 output = out.getvalue().decode("ascii")
54 "your terminal", err.getvalue())
87 stderr = err.getvalue()
115 stderr = err.getvalue()
130 stderr = err.getvalue()
/third_party/PyYAML/tests/lib/
Dtest_input_output.py60 data2 = stream.getvalue()
77 data4 = stream.getvalue()
95 data1 = stream.getvalue()
98 data2 = stream.getvalue().decode('utf-16-le')[1:]
129 output2 = stream.getvalue()
/third_party/python/Lib/test/test_importlib/frozen/
Dtest_loader.py26 return module, stdout.getvalue()
105 self.assertEqual(stdout.getvalue(), 'Hello world!\n')
123 self.assertEqual(stdout.getvalue(), 'Hello world!\n')
141 self.assertEqual(stdout.getvalue(), 'Hello world!\n')
151 self.assertEqual(stdout.getvalue(),
192 self.assertEqual(stdout.getvalue(), 'Hello world!\n')
/third_party/boost/tools/build/test/
Dbuiltin_glob_archive.py46 t.write(f, output.getvalue())
67 t.write("lib/jamfile.jam", output.getvalue())
95 t.write("file.jam", output.getvalue())
/third_party/python/Lib/unittest/
Dresult.py86 output = sys.stdout.getvalue()
87 error = sys.stderr.getvalue()
191 output = sys.stdout.getvalue()
192 error = sys.stderr.getvalue()

123456789