Home
last modified time | relevance | path

Searched refs:assertIn (Results 1 – 25 of 320) sorted by relevance

12345678910>>...13

/third_party/python/Lib/test/test_tools/
Dtest_i18n.py77 self.assertIn("Project-Id-Version", header)
78 self.assertIn("POT-Creation-Date", header)
79 self.assertIn("PO-Revision-Date", header)
80 self.assertIn("Last-Translator", header)
81 self.assertIn("Language-Team", header)
82 self.assertIn("MIME-Version", header)
83 self.assertIn("Content-Type", header)
84 self.assertIn("Content-Transfer-Encoding", header)
85 self.assertIn("Generated-By", header)
119 self.assertIn('doc', msgids)
[all …]
/third_party/python/Lib/test/
Dtest_cgitb.py28 self.assertIn("ValueError", html)
29 self.assertIn(str(err), html)
36 self.assertIn("ValueError", text)
37 self.assertIn("Hello World", text)
47 self.assertIn("ValueError", out)
48 self.assertIn("Hello World", out)
49 self.assertIn("<strong>&lt;module&gt;</strong>", out)
51 self.assertIn('<p>', out)
52 self.assertIn('</p>', out)
63 self.assertIn("ValueError", out)
[all …]
Dtest_calendar.py574 self.assertIn('class="month"', local_month)
577 self.assertIn('class="text-center month"', local_month)
586 self.assertIn('class="sun"', local_weekday)
589 self.assertIn('class="sun2"', local_weekday)
607 self.assertIn(len(days), (35, 42))
822 self.assertIn(b'usage:', stderr)
827 self.assertIn(b'usage:', stdout)
828 self.assertIn(b'calendar.py', stdout)
829 self.assertIn(b'--help', stdout)
840 self.assertIn((' %s' % year).encode(), stdout)
[all …]
Dtest_contains.py23 self.assertIn(1, b)
25 self.assertIn(1, c)
31 self.assertIn('c', 'abc')
34 self.assertIn('', '')
35 self.assertIn('', 'abc')
43 self.assertIn(i, a)
49 self.assertIn(i, a)
78 self.assertIn(elem, container)
Dtest_eof.py37 self.assertIn(b'unterminated triple-quoted string literal (detected at line 3)', err)
64 self.assertIn(b'unexpected EOF while parsing', err)
65 self.assertIn(b'line 1', err)
66 self.assertIn(b'\\', err)
70 self.assertIn(b'unexpected EOF while parsing', err)
71 self.assertIn(b'line 1', err)
72 self.assertIn(b'y = 6\\', err)
Dtest_cmd_line_script.py115 self.assertIn(printed_loader.encode('utf-8'), data)
116 self.assertIn(printed_file.encode('utf-8'), data)
117 self.assertIn(printed_package.encode('utf-8'), data)
118 self.assertIn(printed_argv0.encode('utf-8'), data)
119 self.assertIn(printed_path0.encode('utf-8'), data)
120 self.assertIn(printed_cwd.encode('utf-8'), data)
151 self.assertIn(expected_msg.encode('utf-8'), err)
156 self.assertIn(expected, out)
169 self.assertIn(expected, out)
202 self.assertIn(b'Traceback ', stderr.readline())
[all …]
Dtest_range.py63 self.assertIn(a, seq)
68 self.assertIn(b, seq)
73 self.assertIn(-a, seq)
143 self.assertIn(a, seq)
150 self.assertIn(b, seq)
157 self.assertIn(-a, seq)
178 self.assertIn(a, x)
196 self.assertIn(a, x)
215 self.assertIn(a, x)
234 self.assertIn(a, x)
[all …]
Dtest_script_helper.py27 self.assertIn('command line:', error_msg)
28 self.assertIn('sys.exit(0)', error_msg, msg='unexpected command line')
34 self.assertIn('Process return code is 0\n', error_msg)
35 self.assertIn('import sys; sys.exit(0)', error_msg,
52 self.assertIn('None', popen_command)
53 self.assertIn('-I', popen_command)
113 self.assertIn('-E', check_call_command)
Dtest_sys.py99 self.assertIn(""" File "b'bytes_filename'", line 123\n""", err)
100 self.assertIn(""" text\n""", err)
374 self.assertIn(main_id, d)
375 self.assertIn(thread_id, d)
397 self.assertIn(sourceline, ["leave_g.wait()", "entered_g.set()"])
444 self.assertIn(main_id, d)
445 self.assertIn(thread_id, d)
478 self.assertIn(sys.byteorder, ("little", "big"))
510 self.assertIn(sys.hash_info.hash_bits, {32, 64})
511 self.assertIn(sys.hash_info.seed_bits, {32, 64, 128})
[all …]
Dtest_print.py143 self.assertIn("Missing parentheses in call to 'print'. Did you mean print(...)",
151 self.assertIn("Missing parentheses in call to 'print'. Did you mean print(...)",
159 self.assertIn("Missing parentheses in call to 'print'. Did you mean print(...)",
169 self.assertIn("Missing parentheses in call to 'print'. Did you mean print(...)",
180 self.assertIn("Missing parentheses in call to 'print'. Did you mean print(...)",
188 self.assertIn("Missing parentheses in call to 'print'. Did you mean print(...)",
195 self.assertIn('Did you mean "print(<message>, '
202 self.assertIn('Did you mean "print(<message>, '
Dtest_http_cookiejar.py596 self.assertIn('expires', cookies)
597 self.assertIn('version', cookies)
621 self.assertIn('spam="bar"', h)
643 self.assertIn('spam="bar"', h)
662 self.assertIn("/", c._cookies["www.acme.com"])
666 self.assertIn("/", c._cookies["www.acme.com"])
671 self.assertIn("/blah/", c._cookies["www.acme.com"])
676 self.assertIn("/blah/rhubarb/", c._cookies["www.acme.com"])
682 self.assertIn("/", c._cookies["www.acme.com"])
686 self.assertIn("/", c._cookies["www.acme.com"])
[all …]
Dtest_pydoc.py456 self.assertIn('<BinaryInteger.zero: 0>', doc)
461 self.assertIn('xml.etree.elementtree', doc_link)
500 self.assertIn(encoded, result)
577 self.assertIn(snip, text)
607 self.assertIn(snip, text)
695 self.assertIn("nickname", helptext)
696 self.assertIn("firstname", helptext)
697 self.assertIn("Alias for field number 0", helptext)
698 self.assertIn("Alias for field number 1", helptext)
705 self.assertIn('_1', helptext)
[all …]
Dtest_readline.py161 self.assertIn(b"History length: 1", output)
167 self.assertIn(b"History length: 0", output)
240 self.assertIn(b"text 't\\xeb'\r\n", output)
241 self.assertIn(b"line '[\\xefnserted]|t\\xeb[after]'\r\n", output)
243 self.assertIn(b"indexes 11 13\r\n", output)
254 self.assertIn(b"substitution 't\\xeb'\r\n", output)
255 self.assertIn(b"matches ['t\\xebnt', 't\\xebxt']\r\n", output)
257 self.assertIn(b"result " + expected + b"\r\n", output)
260 self.assertIn(b"history " + expected, output)
Dtest_crypt.py20 self.assertIn('not supported', IMPORT_ERROR)
39 self.assertIn(len(salt) - method.salt_chars, {0, 1, 3, 4, 6, 7})
41 self.assertIn(method.ident, salt[:len(salt)-method.salt_chars])
70 self.assertIn('$rounds=%d$' % rounds, salt)
84 self.assertIn('$%02d$' % log_rounds, salt)
85 self.assertIn(len(salt) - crypt.METHOD_BLOWFISH.salt_chars, {6, 7})
/third_party/googletest/googletest/test/
Dgoogletest-failfast-unittest.py120 self.assertIn('22 FAILED TEST', txt)
124 self.assertIn('1 FAILED TEST', txt)
125 self.assertIn('[ SKIPPED ] 3 tests', txt)
128 self.assertIn('4 FAILED TEST', txt)
137 self.assertIn('1 FAILED TEST', txt)
138 self.assertIn('[ SKIPPED ] 3 tests', txt)
142 self.assertIn('4 FAILED TEST', txt)
153 self.assertIn('1 FAILED TEST', txt)
154 self.assertIn('[ SKIPPED ] 3 tests', txt)
158 self.assertIn('4 FAILED TEST', txt)
[all …]
Dgoogletest-global-environment-unittest.py60 self.assertIn('Canned environment setup error', txt)
64 self.assertIn('[ SKIPPED ] 1 test', txt)
65 self.assertIn('[ PASSED ] 0 tests', txt)
/third_party/node/test/tools/
Dtest_checkimports.py35 self.assertIn('does not use "Local"', output);
36 self.assertIn('using statements aren\'t sorted in', output);
37 self.assertIn('Line 1: Actual: v8::MaybeLocal, Expected: v8::Array',
39 self.assertIn('Line 2: Actual: v8::Array, Expected: v8::Local',
41 self.assertIn('Line 3: Actual: v8::Local, Expected: v8::MaybeLocal',
49 self.assertIn('does not use "Local"', output);
56 self.assertIn('does not use "Context"', output);
63 self.assertIn('using statements aren\'t sorted in', output);
64 self.assertIn('Line 1: Actual: v8::MaybeLocal, Expected: v8::Array',
66 self.assertIn('Line 2: Actual: v8::Array, Expected: v8::MaybeLocal',
/third_party/python/Lib/unittest/test/
Dtest_result.py319 self.assertIn("ZeroDivisionError", formatted_exc)
322 self.assertIn("some recognizable failure", formatted_exc)
685 self.assertIn('ZeroDivisionError: division by zero', formatted_exc)
686 self.assertIn(expected_out, formatted_exc)
707 self.assertIn('ZeroDivisionError: division by zero', formatted_exc)
708 self.assertIn(expected_out, formatted_exc)
730 self.assertIn('ValueError: bad cleanup2', formatted_exc)
732 self.assertIn(expected_out, formatted_exc)
735 self.assertIn('TypeError: bad cleanup1', formatted_exc)
737 self.assertIn(expected_out, formatted_exc)
[all …]
/third_party/python/Lib/idlelib/idle_test/
Dtest_grep.py55 self.assertIn('invalid', s.getvalue())
64 self.assertIn(os.path.join(os.curdir, filename), filelist)
75 self.assertIn(self.realpath, filelist)
82 self.assertIn(readme, filelist)
100 self.assertIn(grepfile, filelist)
108 self.assertIn(grepfile, filelist)
110 self.assertIn(self.realpath, filelist)
115 self.assertIn(self.realpath, filelist)
135 self.assertIn(pat, lines[0])
143 self.assertIn(pat, lines[0])
[all …]
/third_party/libinput/tools/
Dlibinput-record-verify-yaml.py70 self.assertIn(section, self.yaml)
108 self.assertIn('node', d)
109 self.assertIn('evdev', d)
110 self.assertIn('udev', d)
118 self.assertIn(s, evdev)
160 self.assertIn(s, udev)
170 self.assertIn('ID_INPUT=1', properties)
258 self.assertIn('type', e)
259 self.assertIn(e['type'], types)
267 self.assertIn('time', e)
[all …]
/third_party/python/Lib/distutils/tests/
Dtest_dist.py278 self.assertIn("Metadata-Version: 1.0", meta)
293 self.assertIn("Metadata-Version: 1.1", meta)
313 self.assertIn("Metadata-Version: 1.1", meta)
315 self.assertIn("Requires: other", meta)
316 self.assertIn("Requires: another (==1.0)", meta)
342 self.assertIn("Metadata-Version: 1.1", meta)
345 self.assertIn("Obsoletes: other", meta)
346 self.assertIn("Obsoletes: another (<1.0)", meta)
367 self.assertIn('Metadata-Version: 1.1', meta)
375 self.assertIn('should be a list', error.getvalue())
[all …]
Dtest_bdist_rpm.py80 self.assertIn('foo-0.1-1.noarch.rpm', dist_created)
83 self.assertIn(('bdist_rpm', 'any', 'dist/foo-0.1-1.src.rpm'), dist.dist_files)
84 self.assertIn(('bdist_rpm', 'any', 'dist/foo-0.1-1.noarch.rpm'), dist.dist_files)
123 self.assertIn('foo-0.1-1.noarch.rpm', dist_created)
126 self.assertIn(('bdist_rpm', 'any', 'dist/foo-0.1-1.src.rpm'), dist.dist_files)
127 self.assertIn(('bdist_rpm', 'any', 'dist/foo-0.1-1.noarch.rpm'), dist.dist_files)
Dtest_upload.py140 self.assertIn(b'xxx',data)
141 self.assertIn(b'protocol_version', data)
142 self.assertIn(b'sha256_digest', data)
143 self.assertIn(
149 self.assertIn(b'f561aaf6ef0bf14d4208bb46a4ccb3ad', data)
151 self.assertIn(
186 self.assertIn(b'long description\r', self.last_open.req.data)
215 self.assertIn(expected, results[-1])
/third_party/grpc/src/python/grpcio_tests/tests/unit/
D_invalid_metadata_test.py72 self.assertIn(expected_error_details, str(exception_context.exception))
80 self.assertIn(expected_error_details, str(exception_context.exception))
95 self.assertIn(expected_error_details, str(exception_context.exception))
104 self.assertIn(expected_error_details, str(exception_context.exception))
114 self.assertIn(expected_error_details, str(exception_context.exception))
123 self.assertIn(expected_error_details, str(exception_context.exception))
132 self.assertIn(expected_error_details, str(exception_context.exception))
/third_party/python/Lib/lib2to3/tests/
Dtest_main.py52 self.assertIn("-print 'nothing'", output)
53 self.assertIn("WARNING: couldn't encode <stdin>'s diff for "
88 self.assertIn(" implies -w.", stderr)
89 self.assertIn(
95 self.assertIn("Writing converted %s to %s" % (
116 self.assertIn(
131 self.assertIn(

12345678910>>...13