Lines Matching defs:self
23 def __init__(self, path, is_writable=False): argument
38 def __init__(self): argument
42 def read_from_file(self, file_path): argument
45 def write_to_file(self, file_path): argument
48 def set_backing_file(self, file_path): argument
51 def _read_from_backing_file(self): argument
54 def _write_to_backing_file(self): argument
57 def _lock_backing_file(self): argument
60 def _unlock_backing_file(self): argument
105 def test_public_attributes_initialized(self): argument
123 def test_required_attributes_not_none(self): argument
142 def test_autodir_is_not_none(self): argument
147 def test_clientdir_is_not_none(self): argument
153 def make_job(self, autodir, server): argument
168 def setUp(self): argument
173 def test_always_client_dirs(self): argument
183 def test_dynamic_dirs(self): argument
197 def setUp(self): argument
206 def tearDown(self): argument
210 def test_pop_fails_without_push(self): argument
214 def test_push_changes_to_subdir(self): argument
221 def test_push_creates_subdir(self): argument
228 def test_push_handles_absolute_paths(self): argument
237 def test_pop_restores_context(self): argument
245 def test_push_and_pop_are_fifo(self): argument
259 def setUp(self): argument
265 def tearDown(self): argument
270 def test_passes_if_dir_exists(self): argument
277 def test_fails_if_not_writable_and_dir_doesnt_exist(self): argument
283 def test_fails_if_file_already_exists(self): argument
290 def test_passes_if_writable_and_dir_exists(self): argument
297 def test_creates_dir_if_writable_and_dir_doesnt_exist(self): argument
303 def test_recursive_creates_dir_if_writable_and_dir_doesnt_exist(self): argument
309 def test_fails_if_writable_and_file_exists(self): argument
317 def test_fails_if_writable_and_no_permission_to_create(self): argument
324 def test_passes_if_not_is_writable_and_dir_not_writable(self): argument
331 def test_fails_if_is_writable_but_dir_not_writable(self): argument
339 def test_fails_if_no_path_and_not_writable(self): argument
344 def test_no_path_and_and_not_writable_creates_tempdir(self): argument
354 def setUp(self): argument
358 def test_undefined_name_returns_key_error(self): argument
362 def test_undefined_name_returns_default(self): argument
366 def test_none_is_valid_default(self): argument
371 def test_get_returns_set_values(self): argument
376 def test_get_ignores_default_when_value_is_defined(self): argument
381 def test_set_only_sets_one_value(self): argument
387 def test_set_works_with_multiple_names(self): argument
394 def test_multiple_sets_override_each_other(self): argument
400 def test_get_with_default_does_not_set(self): argument
405 def test_set_in_one_namespace_ignores_other(self): argument
411 def test_namespaces_do_not_collide(self): argument
418 def test_discard_does_nothing_on_undefined_namespace(self): argument
423 def test_discard_does_nothing_on_missing_name(self): argument
430 def test_discard_deletes_name(self): argument
437 def test_discard_doesnt_touch_other_values(self): argument
448 def test_has_is_true_for_all_set_values(self): argument
457 def test_has_is_false_for_all_unset_values(self): argument
464 def test_discard_namespace_drops_all_values(self): argument
472 def test_discard_namespace_works_on_missing_namespace(self): argument
476 def test_discard_namespace_doesnt_touch_other_values(self): argument
487 def setUp(self): argument
493 def tearDown(self): argument
498 def test_set_is_persistent(self): argument
505 def test_discard_is_persistent(self): argument
513 def test_discard_namespace_is_persistent(self): argument
522 def setUp(self): argument
528 def tearDown(self): argument
533 def test_write_read_transfers_all_state(self): argument
546 def test_read_overwrites_in_memory(self): argument
556 def test_read_updates_persistent_file(self): argument
571 def test_read_without_merge(self): argument
585 def setUp(self): argument
591 def tearDown(self): argument
596 def test_writes_to_file(self): argument
602 def test_set_backing_file_updates_existing_file(self): argument
618 def test_set_backing_file_does_not_overwrite_previous_backing_file(self): argument
634 def test_writes_stop_after_backing_file_removed(self): argument
644 def test_written_files_can_be_reloaded(self): argument
655 def test_backing_file_overrides_in_memory_values(self): argument
667 def test_backing_file_only_overrides_values_it_defines(self): argument
679 def test_shared_backing_file_propagates_state_to_get(self): argument
691 def test_shared_backing_file_propagates_state_to_has(self): argument
703 def test_shared_backing_file_propagates_state_from_discard(self): argument
716 def test_shared_backing_file_propagates_state_from_discard_namespace(self): argument
735 def setUp(self): argument
744 def read_from_file(self, file_path, merge=True): argument
749 def write_to_file(self, file_path): argument
757 def tearDown(self): argument
762 def test_set(self): argument
766 def test_get_missing(self): argument
770 def test_get_present(self): argument
775 def test_set_backing_file(self): argument
779 def test_has_missing(self): argument
783 def test_has_present(self): argument
788 def test_discard_missing(self): argument
792 def test_discard_present(self): argument
797 def test_discard_missing_namespace(self): argument
801 def test_discard_present_namespace(self): argument
807 def test_disable_backing_file(self): argument
811 def test_change_backing_file(self): argument
815 def test_read_from_a_non_backing_file(self): argument
822 def test_write_to_a_non_backing_file(self): argument
827 def setUp(self): argument
836 def test_properties_are_readwrite(self): argument
843 def test_properties_use_default_if_not_initialized(self): argument
849 def test_properties_do_not_collisde(self): argument
860 def test_properties_do_not_collide_across_different_state_objects(self): argument
871 def test_properties_do_not_collide_across_different_job_objects(self): argument
884 def test_properties_in_different_namespaces_do_not_collide(self): argument
898 def test_accepts_valid_status_code(self): argument
904 def test_accepts_valid_start_status_code(self): argument
908 def test_accepts_valid_end_status_code(self): argument
914 def test_rejects_invalid_status_code(self): argument
919 def test_rejects_invalid_start_status_code(self): argument
930 def test_rejects_invalid_end_status_code(self): argument
935 def test_accepts_valid_subdir(self): argument
940 def test_rejects_bad_subdir(self): argument
953 def test_accepts_valid_operation(self): argument
958 def test_rejects_bad_operation(self): argument
971 def test_simple_message(self): argument
976 def test_message_split_into_multiple_lines(self): argument
983 def test_message_with_tabs(self): argument
987 def test_message_with_custom_fields(self): argument
992 def assertRendered(self, rendered, status, subdir, operation, msg, argument
1007 def test_base_render(self): argument
1014 def test_subdir_render(self): argument
1021 def test_operation_render(self): argument
1028 def test_fields_render(self): argument
1036 def assertEntryEqual(self, lhs, rhs): argument
1042 def test_base_parse(self): argument
1051 def test_subdir_parse(self): argument
1060 def test_operation_parse(self): argument
1069 def test_extra_lines_parse(self): argument
1076 def setUp(self): argument
1085 def __init__(self): argument
1087 def increment(self): argument
1089 def decrement(self): argument
1095 def make_dummy_entry(self, rendered_text, start=False, end=False, argument
1115 def is_start(self): argument
1117 def is_end(self): argument
1119 def render(self): argument
1126 def test_render_includes_indent(self): argument
1134 def test_render_handles_start(self): argument
1140 def test_render_handles_end(self): argument
1148 def test_writes_toplevel_log(self): argument
1155 def test_uses_given_filenames(self): argument
1173 def test_filenames_are_mutable(self): argument
1191 def test_writes_subdir_logs(self): argument
1204 def test_writes_no_subdir_when_disabled(self): argument
1217 def test_indentation(self): argument
1232 def test_multiline_indent(self): argument
1244 def test_hook_is_called(self): argument
1256 def tearDown(self): argument
1262 def setUp(self): argument
1268 def _find_resultdir(self): argument
1273 def test_default_with_no_args_means_no_tags(self): argument
1280 def test_tag_argument_appended(self): argument
1286 def test_turning_on_use_sequence_adds_sequence_tags(self): argument
1299 def test_adding_automatic_test_tag_automatically_tags(self): argument
1306 def test_none_automatic_test_tag_turns_off_tagging(self): argument
1317 def test_empty_automatic_test_tag_turns_off_tagging(self): argument
1328 def test_subdir_tag_modifies_subdir_and_tag_only(self): argument
1335 def test_all_tag_components_together(self): argument
1346 def test_subtest_with_master_test_path_and_subdir(self): argument
1354 def test_subtest_all_tag_components_together_subdir(self): argument
1367 def setUp(self): argument
1390 def tearDown(self): argument
1396 def test_raises_test_error_if_outputdir_exists(self): argument
1403 def test_raises_test_error_if_outputdir_uncreatable(self): argument
1412 def test_creates_writable_directory(self): argument