Lines Matching defs:self
58 def test_get_all(self): argument
64 def test_getset_charset(self): argument
90 def test_set_charset_from_string(self): argument
97 def test_set_payload_with_charset(self): argument
103 def test_set_payload_with_8bit_data_and_charset(self): argument
112 def test_set_payload_with_non_ascii_and_charset_body_encoding_none(self): argument
121 def test_set_payload_with_8bit_data_and_charset_body_encoding_none(self): argument
130 def test_set_payload_to_list(self): argument
135 def test_attach_when_payload_is_string(self): argument
143 def test_get_charsets(self): argument
160 def test_get_filename(self): argument
171 def test_get_filename_with_name_parameter(self): argument
178 def test_get_boundary(self): argument
184 def test_set_boundary(self): argument
206 def test_make_boundary(self): argument
217 def test_message_rfc822_only(self): argument
229 def test_byte_message_rfc822_only(self): argument
240 def test_get_decoded_payload(self): argument
262 def test_get_decoded_uu_payload(self): argument
273 def test_get_payload_n_raises_on_non_multipart(self): argument
277 def test_decoded_generator(self): argument
287 def test__contains__(self): argument
299 def test_as_string(self): argument
309 def test_as_string_policy(self): argument
318 def test_nonascii_as_string_without_cte(self): argument
340 def test_nonascii_as_string_without_content_type_and_cte(self): argument
353 def test_as_bytes(self): argument
363 def test_as_bytes_policy(self): argument
373 def test_bad_param(self): argument
377 def test_missing_filename(self): argument
381 def test_bogus_filename(self): argument
386 def test_missing_boundary(self): argument
390 def test_get_params(self): argument
407 def test_get_param_liberal(self): argument
412 def test_get_param(self): argument
430 def test_get_param_funky_continuation_lines(self): argument
435 def test_get_param_with_semis_in_quotes(self): argument
443 def test_get_param_with_quotes(self): argument
451 def test_field_containment(self): argument
458 def test_set_param(self): argument
475 def test_del_param(self): argument
492 def test_del_param_on_other_header(self): argument
498 def test_del_param_on_nonexistent_header(self): argument
503 def test_del_nonexistent_param(self): argument
510 def test_set_type(self): argument
521 def test_set_type_on_other_header(self): argument
527 def test_get_content_type_missing(self): argument
531 def test_get_content_type_missing_with_default_type(self): argument
536 def test_get_content_type_from_message_implicit(self): argument
541 def test_get_content_type_from_message_explicit(self): argument
546 def test_get_content_type_from_message_text_plain_implicit(self): argument
550 def test_get_content_type_from_message_text_plain_explicit(self): argument
554 def test_get_content_maintype_missing(self): argument
558 def test_get_content_maintype_missing_with_default_type(self): argument
563 def test_get_content_maintype_from_message_implicit(self): argument
567 def test_get_content_maintype_from_message_explicit(self): argument
571 def test_get_content_maintype_from_message_text_plain_implicit(self): argument
575 def test_get_content_maintype_from_message_text_plain_explicit(self): argument
579 def test_get_content_subtype_missing(self): argument
583 def test_get_content_subtype_missing_with_default_type(self): argument
588 def test_get_content_subtype_from_message_implicit(self): argument
592 def test_get_content_subtype_from_message_explicit(self): argument
596 def test_get_content_subtype_from_message_text_plain_implicit(self): argument
600 def test_get_content_subtype_from_message_text_plain_explicit(self): argument
604 def test_get_content_maintype_error(self): argument
609 def test_get_content_subtype_error(self): argument
614 def test_replace_header(self): argument
631 def test_get_content_disposition(self): argument
643 def test_broken_base64_payload(self): argument
655 def test_broken_unicode_payload(self): argument
666 def test_questionable_bytes_payload(self): argument
677 def test_ascii_add_header(self): argument
684 def test_noascii_add_header(self): argument
692 def test_nonascii_add_header_via_triple(self): argument
700 def test_ascii_add_header_with_tspecial(self): argument
708 def test_nonascii_add_header_with_tspecial(self): argument
716 def test_binary_quopri_payload(self): argument
727 def test_binary_base64_payload(self): argument
738 def test_binary_uuencode_payload(self): argument
752 def test_add_header_with_name_only_param(self): argument
757 def test_add_header_with_no_value(self): argument
764 def test_embedded_header_via_Header_rejected(self): argument
769 def test_embedded_header_via_string_rejected(self): argument
774 def test_unicode_header_defaults_to_utf8_encoding(self): argument
787 def test_unicode_body_defaults_to_utf8_encoding(self): argument
802 def test_EncodersEncode_base64(self): argument
811 def test_encode_empty_payload(self): argument
817 def test_default_cte(self): argument
829 def test_encode7or8bit(self): argument
844 def test_qp_encode_latin1(self): argument
854 def test_qp_encode_non_latin1(self): argument
871 def test_split_long_continuation(self): argument
891 def test_another_long_almost_unsplittable_header(self): argument
908 def test_long_nonstring(self): argument
962 def test_long_header_encode(self): argument
971 def test_long_header_encode_with_tab_continuation_is_just_a_hint(self): argument
981 def test_long_header_encode_with_tab_continuation(self): argument
991 def test_header_encode_with_different_output_charset(self): argument
995 def test_long_header_encode_with_different_output_charset(self): argument
1005 def test_header_splitter(self): argument
1025 def test_no_semis_header_splitter(self): argument
1041 def test_last_split_chunk_does_not_fit(self): argument
1050 def test_splittable_leading_char_followed_by_overlong_unsplittable(self): argument
1059 def test_multiple_splittable_leading_char_followed_by_overlong_unsplittable(self): argument
1068 def test_trailing_splittable_on_overlong_unsplittable(self): argument
1075 def test_trailing_splittable_on_overlong_unsplittable_with_leading_splittable(self): argument
1084 def test_long_header_with_multiple_sequential_split_chars(self): argument
1092 def test_splitter_split_on_punctuation_only_if_fws_with_header(self): argument
1099 def test_leading_splittable_in_the_middle_just_before_overlong_last_part(self): argument
1110 def test_overlong_last_part_followed_by_split_point(self): argument
1117 def test_multiline_with_overlong_parts_separated_by_two_split_points(self): argument
1128 def test_multiline_with_overlong_last_part_followed_by_split_point(self): argument
1139 def test_long_header_with_whitespace_runs(self): argument
1156 def test_long_run_with_semi_header_splitter(self): argument
1173 def test_splitter_split_on_punctuation_only_if_fws(self): argument
1191 def test_no_split_long_header(self): argument
1203 def test_splitting_multiple_long_lines(self): argument
1225 def test_splitting_first_line_only_is_long(self): argument
1241 def test_long_8bit_header(self): argument
1261 def test_long_8bit_header_no_charset(self): argument
1282 def test_long_to_header(self): argument
1299 def test_long_line_after_append(self): argument
1308 def test_shorter_line_with_append(self): argument
1316 def test_long_field_name(self): argument
1331 def test_long_received_header(self): argument
1349 def test_string_headerinst_eq(self): argument
1368 def test_long_unbreakable_lines_with_continuation(self): argument
1392 def test_another_long_multiline_header(self): argument
1405 def test_long_lines_with_different_header(self): argument
1424 def test_long_rfc2047_header_with_embedded_fws(self): argument
1441 def setUp(self): argument
1449 def test_mangled_from(self): argument
1460 def test_dont_mangle_from(self): argument
1471 def test_mangle_from_in_preamble_and_epilog(self): argument
1494 def test_mangled_from_with_bad_bytes(self): argument
1508 def test_multipart_with_bad_bytes_in_cte(self): argument
1520 def _make_audio(self, ext): argument
1525 def test_guess_minor_type(self): argument
1536 def test_encoding(self): argument
1542 def test_checkSetMinor(self): argument
1547 def test_add_header(self): argument
1572 def _make_image(self, ext): argument
1577 def test_guess_minor_type(self): argument
1597 def test_encoding(self): argument
1603 def test_checkSetMinor(self): argument
1608 def test_add_header(self): argument
1631 def test_headers(self): argument
1637 def test_body(self): argument
1645 def test_binary_body_with_encode_7or8bit(self): argument
1662 def test_binary_body_with_encode_noop(self): argument
1679 def test_binary_body_with_unicode_linend_encode_noop(self): argument
1691 def test_binary_body_with_encode_quopri(self): argument
1707 def test_binary_body_with_encode_base64(self): argument
1723 def setUp(self): argument
1726 def test_types(self): argument
1735 def test_payload(self): argument
1739 def test_charset(self): argument
1752 def test_7bit_input(self): argument
1758 def test_7bit_input_no_charset(self): argument
1765 def test_utf8_input(self): argument
1775 def test_utf8_input_no_charset(self): argument
1783 def setUp(self): argument
1819 def test_hierarchy(self): argument
1837 def test_empty_multipart_idempotent(self): argument
1854 def test_no_parts_in_a_multipart_with_none_epilogue(self): argument
1872 def test_no_parts_in_a_multipart_with_empty_epilogue(self): argument
1893 def test_one_part_in_a_multipart(self): argument
1918 def test_seq_parts_in_a_multipart_with_empty_preamble(self): argument
1946 def test_seq_parts_in_a_multipart_with_none_preamble(self): argument
1973 def test_seq_parts_in_a_multipart_with_none_epilogue(self): argument
2000 def test_seq_parts_in_a_multipart_with_empty_epilogue(self): argument
2027 def test_seq_parts_in_a_multipart_with_nl_epilogue(self): argument
2054 def test_message_external_body(self): argument
2067 def test_double_boundary(self): argument
2074 def test_nested_inner_contains_outer_boundary(self): argument
2093 def test_nested_with_same_boundary(self): argument
2110 def test_boundary_in_non_multipart(self): argument
2125 def test_boundary_with_leading_space(self): argument
2144 def test_boundary_without_trailing_newline(self): argument
2158 def test_mimebase_default_policy(self): argument
2162 def test_mimebase_custom_policy(self): argument
2169 def test_parse_missing_minor_type(self): argument
2177 def test_same_boundary_inner_outer(self): argument
2187 def test_multipart_no_boundary(self): argument
2220 def test_multipart_invalid_cte(self): argument
2228 def test_multipart_no_cte_no_defect(self): argument
2233 def test_multipart_valid_cte_no_defect(self): argument
2241 def test_invalid_content_type(self): argument
2262 def test_no_start_boundary(self): argument
2279 def test_no_separating_blank_line(self): argument
2291 def test_lying_multipart(self): argument
2301 def test_missing_start_boundary(self): argument
2317 def test_first_line_is_continuation_header(self): argument
2329 def test_missing_header_body_separator(self): argument
2343 def test_rfc2047_multiline(self): argument
2360 def test_whitespace_keeper_unicode(self): argument
2369 def test_whitespace_keeper_unicode_2(self): argument
2378 def test_rfc2047_missing_whitespace(self): argument
2385 def test_rfc2047_with_whitespace(self): argument
2392 def test_rfc2047_B_bad_padding(self): argument
2402 def test_rfc2047_Q_invalid_digits(self): argument
2408 def test_rfc2047_rfc2047_1(self): argument
2414 def test_rfc2047_rfc2047_2(self): argument
2420 def test_rfc2047_rfc2047_3(self): argument
2426 def test_rfc2047_rfc2047_4(self): argument
2432 def test_rfc2047_rfc2047_5a(self): argument
2438 def test_rfc2047_rfc2047_5b(self): argument
2444 def test_rfc2047_rfc2047_6(self): argument
2450 def test_rfc2047_rfc2047_7(self): argument
2459 def test_multiline_header(self): argument
2472 def setUp(self): argument
2476 def test_type_error(self): argument
2479 def test_valid_argument(self): argument
2493 def test_bad_multipart(self): argument
2501 def test_generate(self): argument
2521 def test_parse_message_rfc822(self): argument
2533 def test_dsn(self): argument
2590 def test_epilogue(self): argument
2610 def test_no_nl_preamble(self): argument
2645 def test_default_type(self): argument
2662 def test_default_type_with_explicit_container_type(self): argument
2679 def test_default_type_non_parsed(self): argument
2753 def test_mime_attachments_in_constructor(self): argument
2762 def test_default_multipart_constructor(self): argument
2766 def test_multipart_default_policy(self): argument
2772 def test_multipart_custom_policy(self): argument
2783 def test_nonmultipart_is_not_multipart(self): argument
2787 def test_attach_raises_exception(self): argument
2803 def _msgobj(self, filename): argument
2809 def _idempotent(self, msg, text, unixfrom=False): argument
2816 def test_parse_text_message(self): argument
2828 def test_parse_untyped_message(self): argument
2836 def test_simple_multipart(self): argument
2840 def test_MIME_digest(self): argument
2844 def test_long_header(self): argument
2848 def test_MIME_digest_with_part_headers(self): argument
2852 def test_mixed_with_image(self): argument
2856 def test_multipart_report(self): argument
2860 def test_dsn(self): argument
2864 def test_preamble_epilogue(self): argument
2868 def test_multipart_one_part(self): argument
2872 def test_multipart_no_parts(self): argument
2876 def test_no_start_boundary(self): argument
2880 def test_rfc2231_charset(self): argument
2884 def test_more_rfc2231_parameters(self): argument
2888 def test_text_plain_in_a_multipart_digest(self): argument
2892 def test_nested_multipart_mixeds(self): argument
2896 def test_message_external_body_idempotent(self): argument
2900 def test_message_delivery_status(self): argument
2904 def test_message_signed_idempotent(self): argument
2908 def test_content_type(self): argument
2939 def test_parser(self): argument
2959 def test_message_from_string(self): argument
2970 def test_message_from_file(self): argument
2982 def test_message_from_string_with_class(self): argument
2999 def test_message_from_file_with_class(self): argument
3013 def test_custom_message_does_not_require_arguments(self): argument
3015 def __init__(self): argument
3020 def test__all__(self): argument
3030 def test_formatdate(self): argument
3035 def test_formatdate_localtime(self): argument
3041 def test_formatdate_usegmt(self): argument
3051 def test_parsedate_returns_None_for_invalid_strings(self): argument
3073 def test_parsedate_compact(self): argument
3083 def test_parsedate_no_dayofweek(self): argument
3090 def test_parsedate_no_space_before_positive_offset(self): argument
3094 def test_parsedate_no_space_before_negative_offset(self): argument
3099 def test_parsedate_accepts_time_with_dots(self): argument
3106 def test_parsedate_rfc_850(self): argument
3110 def test_parsedate_no_seconds(self): argument
3114 def test_parsedate_dot_time_delimiter(self): argument
3120 def test_parsedate_acceptable_to_time_functions(self): argument
3131 def test_mktime_tz(self): argument
3137 def test_parsedate_y2k(self): argument
3150 def test_parseaddr_empty(self): argument
3154 def test_parseaddr_multiple_domains(self): argument
3168 def test_noquote_dump(self): argument
3173 def test_escape_dump(self): argument
3184 def test_escape_backslashes(self): argument
3192 def test_quotes_unicode_names(self): argument
3202 def test_accepts_any_charset_like_object(self): argument
3209 def header_encode(self, string): argument
3217 def test_invalid_charset_like_object_raises_error(self): argument
3226 def test_unicode_address_raises_error(self): argument
3232 def test_name_with_dot(self): argument
3241 def test_parseaddr_preserves_quoted_pairs_in_addresses(self): argument
3259 def test_parseaddr_preserves_spaces_in_local_part(self): argument
3277 def test_formataddr_does_not_quote_parens_in_quoted_string(self): argument
3286 def test_multiline_from_comment(self): argument
3292 def test_quote_dump(self): argument
3297 def test_charset_richcomparisons(self): argument
3317 def test_getaddresses(self): argument
3324 def test_getaddresses_comma_in_name(self): argument
3341 def test_parsing_errors(self): argument
3429 def test_getaddresses_nasty(self): argument
3473 def test_getaddresses_embedded_comment(self): argument
3479 def test_getaddresses_header_obj(self): argument
3485 def test_make_msgid_collisions(self): argument
3488 def run(self): argument
3504 def test_utils_quote_unquote(self): argument
3511 def test_get_body_encoding_with_bogus_charset(self): argument
3515 def test_get_body_encoding_with_uppercase_charset(self): argument
3541 def test_charsets_case_insensitive(self): argument
3546 def test_partial_falls_inside_message_delivery_status(self): argument
3588 def test_make_msgid_domain(self): argument
3593 def test_make_msgid_idstring(self): argument
3599 def test_make_msgid_default_domain(self): argument
3606 def test_Generator_linend(self): argument
3617 def test_BytesGenerator_linend(self): argument
3628 def test_BytesGenerator_linend_with_non_ascii(self): argument
3640 def test_mime_classes_policy_argument(self): argument
3661 def test_iter_escaped_chars(self): argument
3674 def test_strip_quoted_realnames(self): argument
3699 def test_check_parenthesis(self): argument
3711 def test_body_line_iterator(self): argument
3728 def test_typed_subpart_iterator(self): argument
3745 def test_typed_subpart_iterator_default_type(self): argument
3764 def test_pushCR_LF(self): argument
3794 def test_push_random(self): argument
3815 def parse(self, chunks): argument
3821 def test_empty_header_name_handled(self): argument
3827 def test_newlines(self): argument
3845 def test_long_lines(self): argument
3863 def test_header_parser(self): argument
3874 def test_bytes_header_parser(self): argument
3886 def test_bytes_parser_does_not_close_file(self): argument
3891 def test_bytes_parser_on_exception_does_not_close_file(self): argument
3899 def test_parser_does_not_close_file(self): argument
3904 def test_parser_on_exception_does_not_close_file(self): argument
3911 def test_whitespace_continuation(self): argument
3929 def test_whitespace_continuation_last_header(self): argument
3947 def test_crlf_separation(self): argument
3958 def test_crlf_flatten(self): argument
3970 def test_multipart_digest_with_extra_mime_headers(self): argument
4001 def test_three_lines(self): argument
4009 def test_strip_line_feed_and_carriage_return_in_headers(self): argument
4020 def test_rfc2822_header_syntax(self): argument
4028 def test_rfc2822_space_not_allowed_in_header(self): argument
4034 def test_rfc2822_one_character_header(self): argument
4043 def test_CRLFLF_at_end_of_part(self): argument
4082 def test_known_8bit_CTE(self): argument
4091 def test_unknown_8bit_CTE(self): argument
4100 def test_8bit_in_quopri_body(self): argument
4118 def test_invalid_8bit_in_non_8bit_cte_uses_replace(self): argument
4134 def test_8bit_in_base64_body(self): argument
4147 def test_8bit_in_uuencode_body(self): argument
4171 def test_get_8bit_header(self): argument
4176 def test_print_8bit_headers(self): argument
4189 def test_values_with_8bit_headers(self): argument
4200 def test_items_with_8bit_headers(self): argument
4212 def test_get_all_with_8bit_headers(self): argument
4218 def test_get_content_type_with_8bit(self): argument
4227 def test_get_params_with_8bit(self): argument
4237 def test_get_rfc2231_params_with_8bit(self): argument
4245 def test_set_rfc2231_params_with_8bit(self): argument
4253 def test_del_rfc2231_params_with_8bit(self): argument
4262 def test_get_payload_with_8bit_cte_header(self): argument
4284 def test_bytes_generator(self): argument
4290 def test_bytes_generator_handles_None_body(self): argument
4310 def test_generator_handles_8bit(self): argument
4316 def test_str_generator_should_not_mutate_msg_when_handling_8bit(self): argument
4326 def test_bytes_generator_with_unix_from(self): argument
4343 def test_message_from_binary_file(self): argument
4374 def test_string_generator_reencodes_to_quopri_when_appropriate(self): argument
4378 def test_decoded_generator_emits_unicode_body(self): argument
4388 def test_bytes_feedparser(self): argument
4395 def test_crlf_flatten(self): argument
4404 def test_8bit_multipart(self): argument
4450 def test_bytes_generator_b_encoding_linesep(self): argument
4462 def test_generator_b_encoding_linesep(self): argument
4481 def _msgobj(self, filename): argument
4488 def _idempotent(self, msg, data, unixfrom=False): argument
4510 def test_len(self): argument
4523 def test_decode(self): argument
4528 def test_encode(self): argument
4550 def test_header_encode(self): argument
4562 def setUp(self): argument
4584 def test_quopri_header_check(self): argument
4592 def test_quopri_body_check(self): argument
4600 def test_header_quopri_len(self): argument
4625 def test_body_quopri_len(self): argument
4632 def test_quote_unquote_idempotent(self): argument
4637 def _test_header_encode(self, header, expected_encoded_header, charset=None): argument
4644 def test_header_encode_null(self): argument
4647 def test_header_encode_one_word(self): argument
4650 def test_header_encode_two_lines(self): argument
4654 def test_header_encode_non_ascii(self): argument
4658 def test_header_encode_alt_charset(self): argument
4662 def _test_header_decode(self, encoded_header, expected_decoded_header): argument
4666 def test_header_decode_null(self): argument
4669 def test_header_decode_one_word(self): argument
4672 def test_header_decode_two_lines(self): argument
4675 def test_header_decode_non_ascii(self): argument
4678 def test_header_decode_re_bug_18380(self): argument
4682 def _test_decode(self, encoded, expected_decoded, eol=None): argument
4689 def test_decode_null_word(self): argument
4692 def test_decode_null_line_null_word(self): argument
4695 def test_decode_one_word(self): argument
4698 def test_decode_one_word_eol(self): argument
4701 def test_decode_one_line(self): argument
4704 def test_decode_one_line_lf(self): argument
4707 def test_decode_one_line_cr(self): argument
4710 def test_decode_one_line_nl(self): argument
4713 def test_decode_one_line_crnl(self): argument
4716 def test_decode_one_line_one_word(self): argument
4719 def test_decode_one_line_one_word_eol(self): argument
4722 def test_decode_two_lines(self): argument
4725 def test_decode_two_lines_eol(self): argument
4728 def test_decode_one_long_line(self): argument
4731 def test_decode_one_space(self): argument
4734 def test_decode_multiple_spaces(self): argument
4737 def test_decode_one_line_trailing_spaces(self): argument
4740 def test_decode_two_lines_trailing_spaces(self): argument
4743 def test_decode_quoted_word(self): argument
4746 def test_decode_uppercase_quoting(self): argument
4749 def test_decode_lowercase_quoting(self): argument
4752 def test_decode_soft_line_break(self): argument
4755 def test_decode_false_quoting(self): argument
4758 def _test_encode(self, body, expected_encoded_body, maxlinelen=None, eol=None): argument
4778 def test_encode_null(self): argument
4781 def test_encode_null_lines(self): argument
4784 def test_encode_one_line(self): argument
4787 def test_encode_one_line_crlf(self): argument
4790 def test_encode_one_line_eol(self): argument
4793 def test_encode_one_line_eol_after_non_ascii(self): argument
4798 def test_encode_one_space(self): argument
4801 def test_encode_one_line_one_space(self): argument
4809 def test_encode_two_lines_one_space(self): argument
4812 def test_encode_one_word_trailing_spaces(self): argument
4815 def test_encode_one_line_trailing_spaces(self): argument
4818 def test_encode_one_word_trailing_tab(self): argument
4821 def test_encode_one_line_trailing_tab(self): argument
4824 def test_encode_trailing_space_before_maxlinelen(self): argument
4827 def test_encode_trailing_space_at_maxlinelen(self): argument
4830 def test_encode_trailing_space_beyond_maxlinelen(self): argument
4833 def test_encode_whitespace_lines(self): argument
4836 def test_encode_quoted_equals(self): argument
4839 def test_encode_one_long_string(self): argument
4842 def test_encode_one_long_line(self): argument
4845 def test_encode_one_very_long_line(self): argument
4849 def test_encode_shortest_maxlinelen(self): argument
4852 def test_encode_maxlinelen_too_small(self): argument
4855 def test_encode(self): argument
4884 def tearDown(self): argument
4891 def test_codec_encodeable(self): argument
4902 def test_body_encode(self): argument
4933 def test_unicode_charset_name(self): argument
4942 def test_simple(self): argument
4949 def test_simple_surprise(self): argument
4956 def test_header_needs_no_decoding(self): argument
4960 def test_long(self): argument
4966 def test_multilingual(self): argument
5029 def test_empty_header_encode(self): argument
5033 def test_header_ctor_default_args(self): argument
5040 def test_explicit_maxlinelen(self): argument
5059 def test_quopri_splittable(self): argument
5128 def test_base64_splittable(self): argument
5182 def test_us_ascii_header(self): argument
5190 def test_string_charset(self): argument
5205 def test_utf8_shortest(self): argument
5212 def test_bad_8bit_header(self): argument
5224 def test_escaped_8bit_header(self): argument
5232 def test_header_handles_binary_unknown8bit(self): argument
5239 def test_make_header_handles_binary_unknown8bit(self): argument
5247 def test_modify_returned_list_does_not_change_header(self): argument
5253 def test_encoded_adjacent_nonencoded(self): argument
5263 def test_whitespace_keeper(self): argument
5272 def test_broken_base64_header(self): argument
5277 def test_shift_jis_charset(self): argument
5281 def test_flatten_header_with_no_value(self): argument
5288 def test_encode_preserves_leading_ws_on_value(self): argument
5293 def test_whitespace_header(self): argument
5303 def test_get_param(self): argument
5311 def test_set_param(self): argument
5348 def test_set_param_requote(self): argument
5358 def test_del_param(self): argument
5391 def test_rfc2231_get_content_charset(self): argument
5397 def test_rfc2231_parse_rfc_quoting(self): argument
5411 def test_rfc2231_parse_extra_quoting(self): argument
5427 def test_rfc2231_no_language_or_charset(self): argument
5442 def test_rfc2231_no_language_or_charset_in_filename(self): argument
5455 def test_rfc2231_no_language_or_charset_in_filename_encoded(self): argument
5469 def test_rfc2231_partly_encoded(self): argument
5482 def test_rfc2231_partly_nonencoded(self): argument
5495 def test_rfc2231_no_language_or_charset_in_boundary(self): argument
5507 def test_rfc2231_no_language_or_charset_in_charset(self): argument
5521 def test_rfc2231_bad_encoding_in_filename(self): argument
5533 def test_rfc2231_bad_encoding_in_charset(self): argument
5543 def test_rfc2231_bad_character_in_charset(self): argument
5553 def test_rfc2231_bad_character_in_filename(self): argument
5565 def test_rfc2231_unknown_encoding(self): argument
5574 def test_rfc2231_bad_character_in_encoding(self): argument
5583 def test_rfc2231_single_tick_in_filename_extended(self): argument
5597 def test_rfc2231_single_tick_in_filename(self): argument
5607 def test_rfc2231_missing_tick(self): argument
5617 def test_rfc2231_missing_tick_with_encoded_non_ascii(self): argument
5628 def test_rfc2231_tick_attack_extended(self): argument
5642 def test_rfc2231_tick_attack(self): argument
5654 def test_rfc2231_no_extended_values(self): argument
5664 def test_rfc2231_encoded_then_unencoded_segments(self): argument
5681 def test_rfc2231_unencoded_then_encoded_segments(self): argument
5696 def test_should_not_hang_on_invalid_ew_messages(self): argument
5724 def _msg_and_obj(self, filename): argument
5730 def _signed_parts_eq(self, original, result): argument
5738 def test_long_headers_as_string(self): argument
5743 def test_long_headers_as_string_maxheaderlen(self): argument
5748 def test_long_headers_flatten(self): argument
5757 def test_HeaderRegistry(self): argument