Lines Matching defs:self
17 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
100 def test_1(self): argument
105 def test_2(self): argument
110 def test_3(self): argument
115 def test_4(self): argument
120 def test_5(self): argument
125 def test_6(self): argument
130 def test_7(self): argument
135 def test_8(self): argument
140 def test_9(self): argument
145 def test_10(self): argument
150 def test_11(self): argument
158 def test_1(self): argument
163 def test_2(self): argument
168 def test_3(self): argument
173 def test_4(self): argument
178 def test_5(self): argument
183 def test_6(self): argument
190 def test_complex_1(self): argument
195 def test_complex_2(self): argument
200 def test_complex_3(self): argument
207 def test_dotted_name(self): argument
212 def test_subscript(self): argument
217 def test_call(self): argument
223 def test_extreme(self): argument
229 def test_weird_comments(self): argument
238 def test_unchanged_1(self): argument
242 def test_unchanged_2(self): argument
246 def test_unchanged_3(self): argument
250 def test_unchanged_4(self): argument
254 def test_unchanged_5(self): argument
258 def test_unchanged_6(self): argument
262 def test_unchanged_6b(self): argument
266 def test_unchanged_7(self): argument
270 def test_unchanged_8(self): argument
274 def test_unchanged_9(self): argument
278 def test_space_1(self): argument
283 def test_space_2(self): argument
291 def test(self): argument
296 def test_comment(self): argument
306 def test_space(self): argument
319 def test_unchanged(self): argument
350 def test_prefix_preservation(self): argument
365 def test(self): argument
380 def test_unchanged(self): argument
399 def test_simple_call(self): argument
404 def test_bug_7253(self): argument
410 def test_call_with_lambda(self): argument
415 def test_unchanged(self): argument
434 def test_prefix_preservation(self): argument
439 def test_idempotency(self): argument
446 def test_idempotency_print_as_function(self): argument
457 def test_1(self): argument
462 def test_2(self): argument
467 def test_3(self): argument
472 def test_4(self): argument
478 def test_5(self): argument
483 def test_tuple(self): argument
490 def test_trailing_comma_1(self): argument
495 def test_trailing_comma_2(self): argument
500 def test_trailing_comma_3(self): argument
507 def test_vargs_without_trailing_comma(self): argument
512 def test_with_trailing_comma(self): argument
517 def test_no_trailing_comma(self): argument
522 def test_spaces_before_file(self): argument
527 def test_with_future_print_function(self): argument
540 def test_prefix_preservation(self): argument
545 def test_basic(self): argument
550 def test_with_globals(self): argument
555 def test_with_globals_locals(self): argument
560 def test_complex_1(self): argument
565 def test_complex_2(self): argument
572 def test_unchanged_1(self): argument
576 def test_unchanged_2(self): argument
580 def test_unchanged_3(self): argument
584 def test_unchanged_4(self): argument
591 def test_prefix_preservation(self): argument
596 def test_simple_1(self): argument
601 def test_simple_2(self): argument
606 def test_complex(self): argument
611 def test_tuple(self): argument
616 def test_nested(self): argument
621 def test_nested_tuples(self): argument
629 def test_prefix_preservation(self): argument
642 def test_simple(self): argument
655 def test_simple_no_space_before_target(self): argument
668 def test_tuple_unpack(self): argument
689 def test_multi_class(self): argument
703 def test_list_unpack(self): argument
718 def test_weird_target_1(self): argument
733 def test_weird_target_2(self): argument
748 def test_weird_target_3(self): argument
763 def test_bare_except(self): argument
781 def test_bare_except_and_else_finally(self): argument
807 def test_multi_fixed_excepts_before_bare_except(self): argument
829 def test_one_line_suites(self): argument
877 def test_unchanged_1(self): argument
885 def test_unchanged_2(self): argument
893 def test_unchanged_3(self): argument
904 def test_basic(self): argument
909 def test_prefix_preservation(self): argument
918 def test_with_comments(self): argument
933 def test_None_value(self): argument
938 def test_tuple_value(self): argument
943 def test_tuple_detection(self): argument
948 def test_tuple_exc_1(self): argument
953 def test_tuple_exc_2(self): argument
960 def test_string_exc(self): argument
964 def test_string_exc_val(self): argument
968 def test_string_exc_val_tb(self): argument
974 def test_tb_1(self): argument
981 def test_tb_2(self): argument
992 def test_tb_3(self): argument
999 def test_tb_4(self): argument
1010 def test_tb_5(self): argument
1017 def test_tb_6(self): argument
1031 def test_1(self): argument
1036 def test_2(self): argument
1041 def test_3(self): argument
1046 def test_4(self): argument
1053 def test_warn_1(self): argument
1057 def test_warn_2(self): argument
1061 def test_warn_3(self): argument
1067 def test_untouched_1(self): argument
1071 def test_untouched_2(self): argument
1075 def test_untouched_3(self): argument
1081 def test_tb_1(self): argument
1088 def test_tb_2(self): argument
1099 def test_tb_3(self): argument
1106 def test_tb_4(self): argument
1117 def test_tb_5(self): argument
1124 def test_tb_6(self): argument
1135 def test_tb_7(self): argument
1142 def test_tb_8(self): argument
1156 def test_1(self): argument
1161 def test_2(self): argument
1166 def test_3(self): argument
1171 def test_unchanged(self): argument
1193 def test_prefix_preservation(self): argument
1202 def test_conversion(self): argument
1227 def test_spacing(self): argument
1240 def test_remove_multiple_items(self): argument
1257 def test_prefix_preservation(self): argument
1262 def test_unchanged(self): argument
1268 def test_prefix_preservation(self): argument
1293 def test_trailing_comment(self): argument
1322 def test_unchanged(self): argument
1333 def test_01(self): argument
1342 def test_02(self): argument
1347 def test_03(self): argument
1352 def test_04(self): argument
1357 def test_05(self): argument
1362 def test_06(self): argument
1367 def test_07(self): argument
1371 def test_08(self): argument
1375 def test_09(self): argument
1380 def test_10(self): argument
1385 def test_11(self): argument
1390 def test_12(self): argument
1395 def test_13(self): argument
1400 def test_14(self): argument
1405 def test_15(self): argument
1410 def test_16(self): argument
1415 def test_17(self): argument
1420 def test_18(self): argument
1425 def test_19(self): argument
1430 def test_20(self): argument
1435 def test_21(self): argument
1440 def test_22(self): argument
1445 def test_23(self): argument
1450 def test_24(self): argument
1455 def test_25(self): argument
1460 def test_26(self): argument
1465 def test_27(self): argument
1470 def test_28(self): argument
1475 def test_29(self): argument
1480 def test_30(self): argument
1485 def test_31(self): argument
1490 def test_32(self): argument
1498 def test_prefix_preservation(self): argument
1511 def test_single_arg(self): argument
1516 def test_two_args(self): argument
1521 def test_three_args(self): argument
1526 def test_wrap_in_list(self): argument
1547 def test_xrange_in_for(self): argument
1556 def test_range_in_for(self): argument
1560 def test_in_contains_test(self): argument
1563 def test_in_consuming_context(self): argument
1569 def setUp(self): argument
1572 def test_double_transform(self): argument
1581 def test_prefix_preservation(self): argument
1590 def test_1(self): argument
1595 def test_2(self): argument
1600 def test_3(self): argument
1605 def test_4(self): argument
1610 def test_5(self): argument
1615 def test_6(self): argument
1620 def test_8(self): argument
1630 def test(self): argument
1640 def test_unchanged(self): argument
1654 def test_call(self): argument
1667 def test_attr_ref(self): argument
1680 def test_unchanged(self): argument
1696 def test_import_module(self): argument
1706 def test_import_from(self): argument
1720 def test_import_module_as(self): argument
1730 def test_import_from_as(self): argument
1736 def test_star(self): argument
1742 def test_import_module_usage(self): argument
1796 def test_multiple_imports(self): argument
1801 def test_multiple_imports_as(self): argument
1820 def setUp(self): argument
1828 def test_after_local_imports_refactoring(self): argument
1838 def test_import_module(self): argument
1844 def test_import_from(self): argument
1870 def test_import_module_as(self): argument
1875 def test_import_from_as(self): argument
1886 def test_star(self): argument
1891 def test_indented(self): argument
1916 def test_single_import(self): argument
1922 def test_import_module_usage(self): argument
1951 def test_prefix_preservation(self): argument
1960 def test_trailing_comment(self): argument
1965 def test_idempotency(self): argument
1975 def test_1(self): argument
1980 def test_2(self): argument
1985 def test_3(self): argument
1990 def test_4(self): argument
1998 def test_unchanged_1(self): argument
2002 def test_unchanged_2(self): argument
2006 def test_unchanged_3(self): argument
2010 def test_1(self): argument
2021 def test_2(self): argument
2032 def test_3(self): argument
2043 def test_semicolon(self): argument
2051 def test_keywords(self): argument
2062 def test_varargs(self): argument
2073 def test_multi_1(self): argument
2085 def test_multi_2(self): argument
2097 def test_docstring(self): argument
2111 def test_lambda_no_change(self): argument
2115 def test_lambda_parens_single_arg(self): argument
2132 def test_lambda_simple(self): argument
2149 def test_lambda_one_tuple(self): argument
2158 def test_lambda_simple_multi_use(self): argument
2163 def test_lambda_simple_reverse(self): argument
2168 def test_lambda_nested(self): argument
2177 def test_lambda_nested_multi_use(self): argument
2187 def test(self): argument
2203 def test_unchanged(self): argument
2217 def test_1(self): argument
2222 def test_2(self): argument
2227 def test_3(self): argument
2232 def test_4(self): argument
2237 def test_5(self): argument
2242 def test_6(self): argument
2247 def test_prefix_preservation_1(self): argument
2260 def test_prefix_preservation_2(self): argument
2275 def test_prefix_preservation_3(self): argument
2290 def test_prefix_preservation_4(self): argument
2307 def test_prefix_preservation_5(self): argument
2322 def test_prefix_preservation_6(self): argument
2335 def test_method_1(self): argument
2348 def test_method_2(self): argument
2361 def test_method_3(self): argument
2374 def test_method_4(self): argument
2399 def test_method_unchanged(self): argument
2407 def test_shadowing_assign_simple(self): argument
2417 def test_shadowing_assign_tuple_1(self): argument
2427 def test_shadowing_assign_tuple_2(self): argument
2437 def test_shadowing_assign_list_1(self): argument
2447 def test_shadowing_assign_list_2(self): argument
2457 def test_builtin_assign(self): argument
2468 def test_builtin_assign_in_tuple(self): argument
2479 def test_builtin_assign_in_list(self): argument
2490 def test_assign_to_next(self): argument
2501 def test_assign_to_next_in_tuple(self): argument
2512 def test_assign_to_next_in_list(self): argument
2523 def test_shadowing_import_1(self): argument
2533 def test_shadowing_import_2(self): argument
2543 def test_shadowing_import_3(self): argument
2553 def test_shadowing_import_from_1(self): argument
2563 def test_shadowing_import_from_2(self): argument
2573 def test_shadowing_import_from_3(self): argument
2583 def test_shadowing_import_from_4(self): argument
2593 def test_shadowing_funcdef_1(self): argument
2604 def test_shadowing_funcdef_2(self): argument
2627 def test_shadowing_global_1(self): argument
2635 def test_shadowing_global_2(self): argument
2643 def test_shadowing_for_simple(self): argument
2653 def test_shadowing_for_tuple_1(self): argument
2663 def test_shadowing_for_tuple_2(self): argument
2673 def test_noncall_access_1(self): argument
2678 def test_noncall_access_2(self): argument
2683 def test_noncall_access_3(self): argument
2691 def test_1(self): argument
2704 def test_2(self): argument
2717 def test_unchanged_1(self): argument
2725 def test_unchanged_2(self): argument
2733 def test_unchanged_func(self): argument
2743 def test_octal_1(self): argument
2748 def test_long_int_1(self): argument
2753 def test_long_int_2(self): argument
2758 def test_long_hex(self): argument
2763 def test_comments_and_spacing(self): argument
2772 def test_unchanged_int(self): argument
2776 def test_unchanged_float(self): argument
2780 def test_unchanged_octal(self): argument
2784 def test_unchanged_hex(self): argument
2788 def test_unchanged_exp(self): argument
2792 def test_unchanged_complex_int(self): argument
2796 def test_unchanged_complex_float(self): argument
2800 def test_unchanged_complex_bare(self): argument
2812 def test_import_from(self): argument
2821 def test_import_from_as(self): argument
2827 def test_import_module_usage(self): argument
2839 def XXX_test_from_import_usage(self): argument
2855 def test_whitespace(self): argument
2868 def test_unicode_call(self): argument
2873 def test_unichr(self): argument
2878 def test_unicode_literal_1(self): argument
2883 def test_unicode_literal_2(self): argument
2888 def test_unicode_literal_3(self): argument
2893 def test_native_literal_escape_u(self): argument
2902 def test_bytes_literal_escape_u(self): argument
2911 def test_unicode_literal_escape_u(self): argument
2920 def test_native_unicode_literal_escape_u(self): argument
2934 def test_prefix_preservation(self): argument
2943 def test_filter_basic(self): argument
2966 def test_filter_trailers(self): argument
2984 def test_filter_nochange(self): argument
3024 def test_future_builtins(self): argument
3038 def check(self, b, a): argument
3042 def test_prefix_preservation(self): argument
3047 def test_map_trailers(self): argument
3064 def test_trailing_comment(self): argument
3069 def test_None_with_multiple_arguments(self): argument
3074 def test_map_basic(self): argument
3108 def test_map_nochange(self): argument
3148 def test_future_builtins(self): argument
3162 def check(self, b, a): argument
3166 def test_zip_basic(self): argument
3179 def test_zip_trailers(self): argument
3188 def test_zip_nochange(self): argument
3228 def test_future_builtins(self): argument
3242 def test(self): argument
3258 def test_basic_types_convert(self): argument
3290 def test_while(self): argument
3309 def test_while_unchanged(self): argument
3322 def test_eq_simple(self): argument
3331 def test_eq_reverse(self): argument
3340 def test_eq_expression(self): argument
3349 def test_is_simple(self): argument
3358 def test_is_reverse(self): argument
3367 def test_is_expression(self): argument
3376 def test_is_not_simple(self): argument
3385 def test_is_not_reverse(self): argument
3394 def test_is_not_expression(self): argument
3403 def test_ne_simple(self): argument
3412 def test_ne_reverse(self): argument
3421 def test_ne_expression(self): argument
3430 def test_type_unchanged(self): argument
3434 def test_sort_list_call(self): argument
3534 def test_sort_simple_expr(self): argument
3616 def test_sort_unchanged(self): argument
3634 def test_basestring(self): argument
3642 def test_buffer(self): argument
3647 def test_slicing(self): argument
3655 def test_future(self): argument
3668 def test_run_order(self): argument
3674 def checkall(self, before, after): argument
3684 def test_0(self): argument
3691 def test_1(self): argument
3696 def test_qualified(self): argument
3705 def test_2(self): argument
3714 def test_space_1(self): argument
3719 def test_space_2(self): argument
3728 def test_run_order(self): argument
3735 def test_reduced(self): argument
3748 def test_comments(self): argument
3753 def test_none(self): argument
3762 def test_import_as(self): argument
3782 def test_ifilter_and_zip_longest(self): argument
3796 def test_import_star(self): argument
3801 def test_unchanged(self): argument
3809 def setUp(self): argument
3823 def tearDown(self): argument
3827 def check_both(self, b, a): argument
3833 def test_files_checked(self): argument
3857 def test_not_in_package(self): argument
3863 def test_with_absolute_import_enabled(self): argument
3869 def test_in_package(self): argument
3876 def test_import_from_package(self): argument
3883 def test_already_relative_import(self): argument
3887 def test_comments_and_indent(self): argument
3892 def test_from(self): argument
3905 def test_dotted_from(self): argument
3910 def test_from_as(self): argument
3915 def test_import(self): argument
3932 def test_import_as(self): argument
3941 def test_local_and_absolute(self): argument
3948 def test_dotted_import(self): argument
3953 def test_dotted_import_as(self): argument
3958 def test_prefix(self): argument
3974 def test_basic(self): argument
4009 def test_listcomps(self): argument
4026 def test_whitespace(self): argument
4058 def test_comments(self): argument
4076 def test_unchanged(self): argument
4100 def test_0(self): argument
4105 def test_1(self): argument
4110 def test_2(self): argument
4115 def test_3(self): argument
4120 def test_4(self): argument
4125 def test_5(self): argument
4134 def test_0(self): argument
4139 def test_1(self): argument
4144 def test_2(self): argument
4149 def test_3(self): argument
4154 def test_4(self): argument
4159 def test_5(self): argument
4164 def test_6(self): argument
4169 def test_unchanged_0(self): argument
4173 def test_unchanged_1(self): argument
4177 def test_unchanged_2(self): argument
4181 def test_unchanged_3(self): argument
4185 def test_unchanged_4(self): argument
4193 def test_unchanged(self): argument
4214 def test_comments(self): argument
4239 def test_meta(self): argument
4358 def test_basic(self): argument
4375 def test_comment(self): argument
4380 def test_unchanged(self): argument
4390 def test_indentation(self): argument
4401 def test_multilation(self): argument
4419 def test_operator_isCallable(self): argument
4424 def test_operator_sequenceIncludes(self): argument
4437 def test_operator_isSequenceType(self): argument
4442 def test_operator_isMappingType(self): argument
4447 def test_operator_isNumberType(self): argument
4452 def test_operator_repeat(self): argument
4465 def test_operator_irepeat(self): argument
4478 def test_bare_isCallable(self): argument
4483 def test_bare_sequenceIncludes(self): argument
4488 def test_bare_operator_isSequenceType(self): argument
4493 def test_bare_operator_isMappingType(self): argument
4498 def test_bare_operator_isNumberType(self): argument
4503 def test_bare_operator_repeat(self): argument
4508 def test_bare_operator_irepeat(self): argument
4518 def test_simple(self): argument
4530 def test_names_import(self): argument
4541 def test_complex_expression(self): argument
4553 def test_comments(self): argument
4575 def test_in_a_function(self): argument
4589 def test_no_sys_import(self): argument
4597 def test_unchanged(self): argument
4606 def test_deprecated_names(self): argument
4624 def test_variants(self): argument
4647 def test_unchanged(self): argument