Home
last modified time | relevance | path

Searched defs:self (Results 1 – 25 of 3395) sorted by relevance

12345678910>>...136

/third_party/python/Lib/test/test_email/
Dtest__header_value_parser.py12 def test_EWWhiteSpaceTerminal(self): argument
22 def _assert_results(self, tl, rest, string, value, defects, remainder, argument
31 def _test_get_x(self, method, source, string, value, defects, argument
38 def _test_parse_x(self, method, input, string, value, defects, argument
54 def test__wsp_splitter_one_word(self): argument
57 def test__wsp_splitter_two_words(self): argument
61 def test__wsp_splitter_ws_runs(self): argument
68 def test_get_fws_only(self): argument
72 def test_get_fws_space(self): argument
75 def test_get_fws_ws_run(self): argument
[all …]
Dtest_email.py54 def test_get_all(self): argument
60 def test_getset_charset(self): argument
86 def test_set_charset_from_string(self): argument
93 def test_set_payload_with_charset(self): argument
99 def test_set_payload_with_8bit_data_and_charset(self): argument
108 def test_set_payload_with_non_ascii_and_charset_body_encoding_none(self): argument
117 def test_set_payload_with_8bit_data_and_charset_body_encoding_none(self): argument
126 def test_set_payload_to_list(self): argument
131 def test_attach_when_payload_is_string(self): argument
139 def test_get_charsets(self): argument
[all …]
/third_party/python/Lib/lib2to3/tests/
Dtest_fixers.py17 def setUp(self, fix_list=None, fixer_pkg="lib2to3", options=None): argument
28 def _check(self, before, after): argument
35 def check(self, before, after, ignore_warnings=False): argument
41 def warns(self, before, after, message, unchanged=False): argument
47 def warns_unchanged(self, before, message): argument
50 def unchanged(self, before, ignore_warnings=False): argument
55 def assert_runs_after(self, *names): argument
73 def test_basic(self): argument
81 def test_no_spaces(self): argument
89 def test_chained(self): argument
[all …]
Dtest_parser.py34 def test_formfeed(self): argument
42 def test_load_grammar_from_txt_file(self): argument
45 def test_load_grammar_from_pickle(self): argument
64 def test_load_grammar_from_subprocess(self): argument
104 def test_load_packaged_grammar(self): argument
107 def get_data(self, where): argument
119 def validate(self, code): argument
122 def invalid_syntax(self, code): argument
132 def test_matrix_multiplication_operator(self): argument
138 def test_yield_from(self): argument
[all …]
/third_party/python/Lib/test/
Dtest_posix.py43 def setUp(self): argument
53 def tearDown(self): argument
58 def testNoArgFunctions(self): argument
75 def test_getresuid(self): argument
83 def test_getresgid(self): argument
91 def test_setresuid(self): argument
99 def test_setresuid_exception(self): argument
108 def test_setresgid(self): argument
116 def test_setresgid_exception(self): argument
125 def test_initgroups(self): argument
[all …]
Dtest_minidom.py54 def confirm(self, test, testname = "Test"): argument
57 def checkWholeText(self, node, s): argument
61 def testDocumentAsyncAttr(self): argument
66 def testParseFromBinaryFile(self): argument
72 def testParseFromTextFile(self): argument
78 def testGetElementsByTagName(self): argument
84 def testInsertBefore(self): argument
127 def _create_fragment_test_nodes(self): argument
140 def testInsertBeforeFragment(self): argument
157 def testAppendChild(self): argument
[all …]
Dtest_re.py19 def __getitem__(self, index): argument
23 def __getitem__(self, index): argument
28 def assertTypedEqual(self, actual, expect, msg=None): argument
38 def checkPatternError(self, pattern, errmsg, pos=None): argument
47 def checkTemplateError(self, pattern, repl, string, errmsg, pos=None): argument
56 def test_keep_buffer(self): argument
67 def test_weakref(self): argument
73 def test_search_star_plus(self): argument
85 def bump_num(self, matchobj): argument
89 def test_basic_re_sub(self): argument
[all …]
Dtest_lzma.py23 def test_simple_bad_args(self): argument
63 def test_bad_filter_spec(self): argument
74 def test_decompressor_after_eof(self): argument
79 def test_decompressor_memlimit(self): argument
91 def _test_decompressor(self, lzd, data, check, unused_data=b""): argument
99 def test_decompressor_auto(self): argument
106 def test_decompressor_xz(self): argument
110 def test_decompressor_alone(self): argument
114 def test_decompressor_raw_1(self): argument
118 def test_decompressor_raw_2(self): argument
[all …]
Dtest_bz2.py79 def setUp(self): argument
83 def tearDown(self): argument
90 def createTempFile(self, streams=1, suffix=b""): argument
95 def testBadArgs(self): argument
106 def testRead(self): argument
112 def testReadBadFile(self): argument
117 def testReadMultiStream(self): argument
123 def testReadMonkeyMultiStream(self): argument
136 def testReadTrailingJunk(self): argument
141 def testReadMultiStreamTrailingJunk(self): argument
[all …]
Dtest_subprocess.py72 def setUp(self): argument
77 def tearDown(self): argument
98 def _execute_child(self, *args, **kwargs): argument
104 def test_io_buffered_by_default(self): argument
118 def test_io_unbuffered_works(self): argument
132 def test_call_seq(self): argument
138 def test_call_timeout(self): argument
147 def test_check_call_zero(self): argument
152 def test_check_call_nonzero(self): argument
159 def test_check_output(self): argument
[all …]
Dtest_curses.py32 def wrapped(self, *args, **kwargs): argument
42 def wrapped(self, *args, **kwargs): argument
68 def setUp(self): argument
117 def test_filter(self): argument
123 def test_use_env(self): argument
129 def test_create_windows(self): argument
181 def test_move_cursor(self): argument
192 def test_refresh_control(self): argument
240 def test_output_character(self): argument
273 def test_output_string(self): argument
[all …]
Dtest_pathlib.py25 def _check_parse_parts(self, arg, expected): argument
35 def test_parse_parts_common(self): argument
67 def test_parse_parts(self): argument
79 def test_splitroot(self): argument
103 def test_parse_parts(self): argument
137 def test_splitroot(self): argument
185 def setUp(self): argument
191 def test_constructor_common(self): argument
205 def _check_str_subclass(self, *args): argument
217 def test_str_subclass_common(self): argument
[all …]
Dtest_smtpd.py12 def __init__(self, *args, **kwargs): argument
20 def process_message(self, peer, mailfrom, rcpttos, data, **kw): argument
33 def listen(self, num): argument
38 def setUp(self): argument
41 def test_process_message_unimplemented(self): argument
57 def test_decode_data_and_enable_SMTPUTF8_raises(self): argument
66 def tearDown(self): argument
73 def setUp(self): argument
76 def send_data(self, channel, data, enable_SMTPUTF8=False): argument
90 def test_process_message_with_decode_data_true(self): argument
[all …]
Dtest_weakset.py14 def __init__(self): argument
20 def setUp(self): argument
36 def test_methods(self): argument
44 def test_new_or_init(self): argument
47 def test_len(self): argument
53 def test_contains(self): argument
62 def test_union(self): argument
79 def test_or(self): argument
84 def test_intersection(self): argument
99 def test_isdisjoint(self): argument
[all …]
Dtest_plistlib.py404 def tearDown(self): argument
410 def _create(self, fmt=None): argument
437 def test_create(self): argument
442 def test_io(self): argument
455 def test_invalid_type(self): argument
462 def test_invalid_uid(self): argument
470 def test_int(self): argument
488 def test_bytearray(self): argument
499 def test_bytes(self): argument
507 def test_indentation_array(self): argument
[all …]
Dtest_urlparse.py73 def checkRoundtrips(self, url, parsed, split): argument
124 def test_qsl(self): argument
133 def test_qs(self): argument
143 def test_roundtrips(self): argument
178 def test_http_roundtrips(self): argument
216 def checkJoin(self, base, relurl, expected): argument
223 def test_unparse_parse(self): argument
230 def test_RFC1808(self): argument
278 def test_RFC2368(self): argument
283 def test_RFC2396(self): argument
[all …]
Dtest_socket.py175 def setUp(self): argument
180 def tearDown(self): argument
186 def setUp(self): argument
190 def tearDown(self): argument
196 def setUp(self): argument
207 def __init__(self, *args, **kwargs): argument
211 def addCleanup(self, *args, **kwargs): argument
215 def doCleanups(self, *args, **kwargs): argument
260 def setUp(self): argument
277 def setUp(self): argument
[all …]
Dtest_set.py22 def __hash__(self): argument
24 def __eq__(self, other): argument
29 def __repr__(self): argument
34 def __init__(self, *args): argument
36 def __hash__(self): argument
43 def setUp(self): argument
50 def test_new_or_init(self): argument
54 def test_uniquification(self): argument
61 def test_len(self): argument
64 def test_contains(self): argument
[all …]
Dtest_bytes.py39 def __init__(self, value=0): argument
41 def __index__(self): argument
47 def test_basics(self): argument
52 def test_copy(self): argument
59 def test_empty_sequence(self): argument
74 def test_from_iterable(self): argument
97 def __getitem__(self, i): argument
102 def test_from_tuple(self): argument
110 def test_from_list(self): argument
118 def test_from_mutating_list(self): argument
[all …]
Dtest_mailbox.py24 def _check_sample(self, msg): argument
38 def _delete_recursively(self, target): argument
53 def setUp(self): argument
58 def tearDown(self): argument
62 def test_add(self): argument
92 def test_add_invalid_8bit_bytes_header(self): argument
98 def test_invalid_nonascii_header_as_string(self): argument
105 def test_add_nonascii_string_header_raises(self): argument
112 def test_add_that_raises_leaves_mailbox_empty(self): argument
134 def test_add_8bit_body(self): argument
[all …]
/third_party/python/Lib/test/test_asyncio/
Dtest_proactor_events.py35 def setUp(self): argument
44 def socket_transport(self, waiter=None): argument
50 def test_ctor(self): argument
58 def test_loop_reading(self): argument
65 def test_loop_reading_data(self): argument
75 def test_loop_reading_no_data(self): argument
89 def test_loop_reading_aborted(self): argument
99 def test_loop_reading_aborted_closing(self): argument
108 def test_loop_reading_aborted_is_fatal(self): argument
116 def test_loop_reading_conn_reset_lost(self): argument
[all …]
Dtest_selector_events.py29 def _make_self_pipe(self): argument
34 def _close_self_pipe(self): argument
53 def setUp(self): argument
60 def test_make_socket_transport(self): argument
74 def test_make_ssl_transport(self): argument
113 def test_make_ssl_transport_without_ssl_error(self): argument
122 def test_close(self): argument
124 def _make_self_pipe(self): argument
166 def test_close_no_selector(self): argument
173 def test_read_from_self_tryagain(self): argument
[all …]
/third_party/protobuf/python/google/protobuf/internal/
Djson_format_test.py65 def FillAllFields(self, message): argument
102 def CheckParseBack(self, message, parsed_message): argument
107 def CheckError(self, text, error_message): argument
117 def testEmptyMessageToJson(self): argument
124 def testPartialMessageToJson(self): argument
134 def testAllFieldsToJson(self): argument
167 def testUnknownEnumToJsonAndBack(self): argument
177 def testExtensionToJsonAndBack(self): argument
190 def testExtensionErrors(self): argument
194 def testExtensionToDictAndBack(self): argument
[all …]
/third_party/uboot/u-boot-2020.01/tools/binman/
Dftest.py209 def _CheckLz4(self): argument
213 def _CleanupOutputDir(self): argument
220 def setUp(self): argument
225 def tearDown(self): argument
229 def _SetupImageInTmpdir(self): argument
257 def _RunBinman(self, *args, **kwargs): argument
271 def _DoBinman(self, *argv): argument
288 def _DoTestFile(self, fname, debug=False, map=False, update_dtb=False, argument
329 def _SetupDtb(self, fname, outfile='u-boot.dtb'): argument
350 def _GetDtbContentsForSplTpl(self, dtb_data, name): argument
[all …]
/third_party/python/Lib/sqlite3/test/
Ddbapi.py32 def CheckAPILevel(self): argument
36 def CheckThreadSafety(self): argument
40 def CheckParamStyle(self): argument
45 def CheckWarning(self): argument
49 def CheckError(self): argument
53 def CheckInterfaceError(self): argument
57 def CheckDatabaseError(self): argument
61 def CheckDataError(self): argument
65 def CheckOperationalError(self): argument
69 def CheckIntegrityError(self): argument
[all …]

12345678910>>...136