Home
last modified time | relevance | path

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

12345678910>>...146

/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.py55 def test_get_all(self): argument
61 def test_getset_charset(self): argument
87 def test_set_charset_from_string(self): argument
94 def test_set_payload_with_charset(self): argument
100 def test_set_payload_with_8bit_data_and_charset(self): argument
109 def test_set_payload_with_non_ascii_and_charset_body_encoding_none(self): argument
118 def test_set_payload_with_8bit_data_and_charset_body_encoding_none(self): argument
127 def test_set_payload_to_list(self): argument
132 def test_attach_when_payload_is_string(self): argument
140 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
108 def test_load_packaged_grammar(self): argument
111 def get_data(self, where): argument
123 def validate(self, code): argument
126 def invalid_syntax(self, code): argument
136 def test_matrix_multiplication_operator(self): argument
142 def test_yield_from(self): argument
[all …]
/third_party/python/Lib/test/
Dtest_posix.py46 def setUp(self): argument
56 def tearDown(self): argument
61 def testNoArgFunctions(self): argument
78 def test_getresuid(self): argument
86 def test_getresgid(self): argument
94 def test_setresuid(self): argument
102 def test_setresuid_exception(self): argument
111 def test_setresgid(self): argument
119 def test_setresgid_exception(self): argument
128 def test_initgroups(self): argument
[all …]
Dtest_re.py20 def __getitem__(self, index): argument
24 def __getitem__(self, index): argument
29 def assertTypedEqual(self, actual, expect, msg=None): argument
39 def checkPatternError(self, pattern, errmsg, pos=None): argument
48 def checkTemplateError(self, pattern, repl, string, errmsg, pos=None): argument
57 def test_keep_buffer(self): argument
68 def test_weakref(self): argument
74 def test_search_star_plus(self): argument
86 def bump_num(self, matchobj): argument
90 def test_basic_re_sub(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_lzma.py26 def test_simple_bad_args(self): argument
66 def test_bad_filter_spec(self): argument
77 def test_decompressor_after_eof(self): argument
82 def test_decompressor_memlimit(self): argument
94 def _test_decompressor(self, lzd, data, check, unused_data=b""): argument
102 def test_decompressor_auto(self): argument
109 def test_decompressor_xz(self): argument
113 def test_decompressor_alone(self): argument
117 def test_decompressor_raw_1(self): argument
121 def test_decompressor_raw_2(self): argument
[all …]
Dtest_subprocess.py81 def setUp(self): argument
86 def tearDown(self): argument
107 def _execute_child(self, *args, **kwargs): argument
113 def test_io_buffered_by_default(self): argument
127 def test_io_unbuffered_works(self): argument
141 def test_call_seq(self): argument
147 def test_call_timeout(self): argument
156 def test_check_call_zero(self): argument
161 def test_check_call_nonzero(self): argument
168 def test_check_output(self): argument
[all …]
Dtest_bz2.py82 def setUp(self): argument
86 def tearDown(self): argument
93 def createTempFile(self, streams=1, suffix=b""): argument
98 def testBadArgs(self): argument
109 def testRead(self): argument
115 def testReadBadFile(self): argument
120 def testReadMultiStream(self): argument
126 def testReadMonkeyMultiStream(self): argument
139 def testReadTrailingJunk(self): argument
144 def testReadMultiStreamTrailingJunk(self): argument
[all …]
Dtest_pathlib.py26 def _check_parse_parts(self, arg, expected): argument
36 def test_parse_parts_common(self): argument
68 def test_parse_parts(self): argument
80 def test_splitroot(self): argument
104 def test_parse_parts(self): argument
138 def test_splitroot(self): argument
186 def setUp(self): argument
192 def test_constructor_common(self): argument
206 def _check_str_subclass(self, *args): argument
218 def test_str_subclass_common(self): argument
[all …]
Dtest_smtpd.py17 def __init__(self, *args, **kwargs): argument
25 def process_message(self, peer, mailfrom, rcpttos, data, **kw): argument
38 def listen(self, num): argument
43 def setUp(self): argument
46 def test_process_message_unimplemented(self): argument
62 def test_decode_data_and_enable_SMTPUTF8_raises(self): argument
71 def tearDown(self): argument
78 def setUp(self): argument
81 def send_data(self, channel, data, enable_SMTPUTF8=False): argument
95 def test_process_message_with_decode_data_true(self): argument
[all …]
Dtest_bytes.py41 def __init__(self, value=0): argument
43 def __index__(self): argument
49 def test_basics(self): argument
54 def test_copy(self): argument
61 def test_empty_sequence(self): argument
76 def test_from_iterable(self): argument
99 def __getitem__(self, i): argument
104 def test_from_tuple(self): argument
112 def test_from_list(self): argument
120 def test_from_mutating_list(self): argument
[all …]
Dtest_socket.py177 def setUp(self): argument
182 def tearDown(self): argument
188 def setUp(self): argument
192 def tearDown(self): argument
198 def setUp(self): argument
209 def __init__(self, *args, **kwargs): argument
213 def addCleanup(self, *args, **kwargs): argument
217 def doCleanups(self, *args, **kwargs): argument
262 def setUp(self): argument
279 def setUp(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_patma.py18 def test_refleaks(self): argument
44 def test_multiple_inheritance_mapping(self): argument
64 def test_multiple_inheritance_sequence(self): argument
84 def test_late_registration_mapping(self): argument
107 def test_late_registration_sequence(self): argument
133 def test_patma_000(self): argument
139 def test_patma_001(self): argument
147 def test_patma_002(self): argument
155 def test_patma_003(self): argument
162 def test_patma_004(self): argument
[all …]
Dtest_weakset.py15 def __init__(self): argument
21 def setUp(self): argument
37 def test_methods(self): argument
45 def test_new_or_init(self): argument
48 def test_len(self): argument
55 def test_contains(self): argument
65 def test_union(self): argument
82 def test_or(self): argument
87 def test_intersection(self): argument
102 def test_isdisjoint(self): argument
[all …]
Dtest_mailbox.py25 def _check_sample(self, msg): argument
39 def _delete_recursively(self, target): argument
54 def setUp(self): argument
59 def tearDown(self): argument
63 def test_add(self): argument
93 def test_add_invalid_8bit_bytes_header(self): argument
99 def test_invalid_nonascii_header_as_string(self): argument
106 def test_add_nonascii_string_header_raises(self): argument
113 def test_add_that_raises_leaves_mailbox_empty(self): argument
135 def test_add_8bit_body(self): argument
[all …]
Dtest_plistlib.py405 def tearDown(self): argument
411 def _create(self, fmt=None): argument
438 def test_create(self): argument
443 def test_io(self): argument
456 def test_invalid_type(self): argument
463 def test_invalid_uid(self): argument
471 def test_int(self): argument
489 def test_bytearray(self): argument
500 def test_bytes(self): argument
508 def test_indentation_array(self): argument
[all …]
Dtest_set.py23 def __hash__(self): argument
25 def __eq__(self, other): argument
30 def __repr__(self): argument
35 def __init__(self, *args): argument
37 def __hash__(self): argument
44 def setUp(self): argument
51 def test_new_or_init(self): argument
55 def test_uniquification(self): argument
62 def test_len(self): argument
65 def test_contains(self): argument
[all …]
Dtest_httpservers.py38 def log_message(self, *args): argument
42 def read(self, n=None): argument
47 def __init__(self, test_object, request_handler): argument
52 def run(self): argument
62 def stop(self): argument
68 def setUp(self): argument
76 def tearDown(self): argument
82 def request(self, uri, method='GET', body=None, headers={}): argument
93 def do_TEST(self): argument
99 def do_KEEP(self): argument
[all …]
/third_party/python/Lib/sqlite3/test/
Ddbapi.py34 def test_api_level(self): argument
38 def test_thread_safety(self): argument
42 def test_param_style(self): argument
47 def test_warning(self): argument
51 def test_error(self): argument
55 def test_interface_error(self): argument
59 def test_database_error(self): argument
63 def test_data_error(self): argument
67 def test_operational_error(self): argument
71 def test_integrity_error(self): argument
[all …]
/third_party/python/Lib/test/test_asyncio/
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 …]
Dtest_proactor_events.py35 def setUp(self): argument
45 def socket_transport(self, waiter=None): argument
51 def test_ctor(self): argument
59 def test_loop_reading(self): argument
66 def test_loop_reading_data(self): argument
80 def test_loop_reading_no_data(self): argument
94 def test_loop_reading_aborted(self): argument
104 def test_loop_reading_aborted_closing(self): argument
113 def test_loop_reading_aborted_is_fatal(self): argument
121 def test_loop_reading_conn_reset_lost(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 …]

12345678910>>...146