Lines Matching defs:self

21     def setUp(self):  argument
26 def tearDown(self): argument
30 def test_ip_to_long(self): argument
37 def test_long_to_ip(self): argument
44 def test_create_subnet_mask(self): argument
50 def test_format_ip_with_mask(self): argument
61 def create_test_file(self, contents): argument
66 def test_reads_one_line_file(self): argument
72 def test_strips_read_lines(self): argument
78 def test_drops_extra_lines(self): argument
84 def test_works_on_empty_file(self): argument
90 def test_works_on_file_with_no_newlines(self): argument
97 def test_preserves_leading_whitespace(self): argument
104 def setUp(self): argument
109 def tearDown(self): argument
113 def get_write_one_line_output(self, content): argument
121 def test_writes_one_line_file(self): argument
125 def test_preserves_existing_newline(self): argument
129 def test_preserves_leading_whitespace(self): argument
133 def test_preserves_trailing_whitespace(self): argument
137 def test_handles_empty_input(self): argument
142 def setUp(self): argument
147 def tearDown(self): argument
151 def test_simple_functionality(self): argument
161 def setUp(self): argument
168 def tearDown(self): argument
172 def create_test_file(self, filename, contents): argument
178 def read_keyval(self, contents): argument
186 def test_returns_empty_when_file_doesnt_exist(self): argument
193 def test_accesses_files_directly(self): argument
200 def test_accesses_directories_through_keyval_file(self): argument
207 def test_values_are_rstripped(self): argument
212 def test_comments_are_ignored(self): argument
217 def test_integers_become_ints(self): argument
223 def test_float_values_become_floats(self): argument
229 def test_multiple_lines(self): argument
234 def test_the_last_duplicate_line_is_used(self): argument
239 def test_extra_equals_are_included_in_values(self): argument
244 def test_non_alphanumeric_keynames_are_rejected(self): argument
248 def test_underscores_are_allowed_in_key_names(self): argument
253 def test_dashes_are_allowed_in_key_names(self): argument
257 def test_empty_value_is_allowed(self): argument
263 def setUp(self): argument
269 def tearDown(self): argument
273 def assertHasLines(self, value, lines): argument
279 def write_keyval(self, filename, dictionary, expected_filename=None, argument
294 def write_keyval_file(self, dictionary, type_tag=None): argument
299 def test_accesses_files_directly(self): argument
305 def test_accesses_directories_through_keyval_file(self): argument
311 def test_numbers_are_stringified(self): argument
316 def test_type_tags_are_excluded_by_default(self): argument
323 def test_perf_tags_are_allowed(self): argument
331 def test_non_alphanumeric_keynames_are_rejected(self): argument
335 def test_underscores_are_allowed_in_key_names(self): argument
340 def test_dashes_are_allowed_in_key_names(self): argument
346 def test_accepts_http(self): argument
350 def test_accepts_ftp(self): argument
354 def test_rejects_local_path(self): argument
358 def test_rejects_local_filename(self): argument
362 def test_rejects_relative_local_path(self): argument
366 def test_rejects_local_path_containing_url(self): argument
371 def setUp(self): argument
375 def tearDown(self): argument
379 def stub_urlopen_with_timeout_comparison(self, test_func, expected_return, argument
389 def stub_urlopen_with_timeout_check(self, expected_timeout, argument
397 def test_timeout_set_during_call(self): argument
403 def test_timeout_reset_after_call(self): argument
414 def test_timeout_set_by_default(self): argument
421 def test_args_are_untouched(self): argument
428 def setUp(self): argument
432 def tearDown(self): argument
436 def test_urlopen_passed_arguments(self): argument
462 def src(self, *path_segments): argument
466 def dest(self, *path_segments): argument
470 def paths(self, *path_segments): argument
474 def assertFileEqual(self, *path_segments): argument
482 def assertFileContents(self, contents, *path_segments): argument
489 def setUp(self): argument
498 def tearDown(self): argument
503 def test_both_dont_exist(self): argument
507 def test_file_only_at_src(self): argument
513 def test_file_only_at_dest(self): argument
520 def test_file_at_both(self): argument
527 def test_directory_with_files_in_both(self): argument
534 def test_directory_with_mix_of_files(self): argument
542 def test_directory_with_subdirectories(self): argument
556 def test_not_absolute(self): argument
559 def test_same_dir(self): argument
562 def test_forward_dir(self): argument
565 def test_previous_dir(self): argument
568 def test_parallel_dir(self): argument
574 def _test_in_shell(self, text): argument
585 def test_normal_string(self): argument
589 def test_spaced_string(self): argument
593 def test_dollar(self): argument
597 def test_single_quote(self): argument
601 def test_single_quoted_string(self): argument
605 def test_string_with_single_quote(self): argument
609 def test_string_with_escaped_single_quote(self): argument
613 def test_double_quote(self): argument
617 def test_double_quoted_string(self): argument
621 def test_backtick(self): argument
625 def test_backticked_string(self): argument
629 def test_backslash(self): argument
633 def test_backslashed_special_characters(self): argument
640 def test_backslash_codes(self): argument
649 def test_real_newline(self): argument
660 def _test_in_shell(self, text): argument
673 def _test_in_shell(self, text): argument
688 def setUp(self): argument
694 def tearDown(self): argument
698 def __check_result(self, result, command, exit_status=0, stdout='', argument
706 def test_default_simple(self): argument
713 def test_default_failure(self): argument
721 def test_ignore_status(self): argument
727 def test_timeout(self): argument
736 def test_stdout_stderr_tee(self): argument
748 def test_stdin_string(self): argument
754 def test_safe_args(self): argument
764 def test_safe_args_given_string(self): argument
768 def test_wait_interrupt(self): argument
789 def test_zerofill(self): argument
795 def test_unequal_len(self): argument
800 def test_dash_delimited(self): argument
806 def test_alphabets(self): argument
812 def test_mix_symbols(self): argument
823 def test_no_args(self): argument
828 def test_matches(self): argument
835 def test_unmatches(self): argument
852 def do_bind(self, port, socket_type, socket_proto): argument
859 def test_get_port(self): argument