Lines Matching defs:self
17 def __init__(self, path, is_writable=False): argument
32 def __init__(self): argument
36 def read_from_file(self, file_path): argument
39 def write_to_file(self, file_path): argument
42 def set_backing_file(self, file_path): argument
45 def _read_from_backing_file(self): argument
48 def _write_to_backing_file(self): argument
51 def _lock_backing_file(self): argument
54 def _unlock_backing_file(self): argument
100 def test_public_attributes_initialized(self): argument
118 def test_required_attributes_not_none(self): argument
137 def test_autodir_is_not_none(self): argument
142 def test_clientdir_is_not_none(self): argument
148 def make_job(self, autodir, server): argument
163 def setUp(self): argument
168 def test_always_client_dirs(self): argument
178 def test_dynamic_dirs(self): argument
192 def setUp(self): argument
201 def tearDown(self): argument
205 def test_pop_fails_without_push(self): argument
209 def test_push_changes_to_subdir(self): argument
216 def test_push_creates_subdir(self): argument
223 def test_push_handles_absolute_paths(self): argument
232 def test_pop_restores_context(self): argument
240 def test_push_and_pop_are_fifo(self): argument
254 def setUp(self): argument
260 def tearDown(self): argument
265 def test_passes_if_dir_exists(self): argument
272 def test_fails_if_not_writable_and_dir_doesnt_exist(self): argument
278 def test_fails_if_file_already_exists(self): argument
285 def test_passes_if_writable_and_dir_exists(self): argument
292 def test_creates_dir_if_writable_and_dir_doesnt_exist(self): argument
298 def test_recursive_creates_dir_if_writable_and_dir_doesnt_exist(self): argument
304 def test_fails_if_writable_and_file_exists(self): argument
312 def test_fails_if_writable_and_no_permission_to_create(self): argument
319 def test_passes_if_not_is_writable_and_dir_not_writable(self): argument
326 def test_fails_if_is_writable_but_dir_not_writable(self): argument
334 def test_fails_if_no_path_and_not_writable(self): argument
339 def test_no_path_and_and_not_writable_creates_tempdir(self): argument
349 def setUp(self): argument
353 def test_undefined_name_returns_key_error(self): argument
357 def test_undefined_name_returns_default(self): argument
361 def test_none_is_valid_default(self): argument
366 def test_get_returns_set_values(self): argument
371 def test_get_ignores_default_when_value_is_defined(self): argument
376 def test_set_only_sets_one_value(self): argument
382 def test_set_works_with_multiple_names(self): argument
389 def test_multiple_sets_override_each_other(self): argument
395 def test_get_with_default_does_not_set(self): argument
400 def test_set_in_one_namespace_ignores_other(self): argument
406 def test_namespaces_do_not_collide(self): argument
413 def test_discard_does_nothing_on_undefined_namespace(self): argument
418 def test_discard_does_nothing_on_missing_name(self): argument
425 def test_discard_deletes_name(self): argument
432 def test_discard_doesnt_touch_other_values(self): argument
443 def test_has_is_true_for_all_set_values(self): argument
452 def test_has_is_false_for_all_unset_values(self): argument
459 def test_discard_namespace_drops_all_values(self): argument
467 def test_discard_namespace_works_on_missing_namespace(self): argument
471 def test_discard_namespace_doesnt_touch_other_values(self): argument
482 def setUp(self): argument
488 def tearDown(self): argument
493 def test_set_is_persistent(self): argument
500 def test_discard_is_persistent(self): argument
508 def test_discard_namespace_is_persistent(self): argument
517 def setUp(self): argument
523 def tearDown(self): argument
528 def test_write_read_transfers_all_state(self): argument
541 def test_read_overwrites_in_memory(self): argument
551 def test_read_updates_persistent_file(self): argument
566 def test_read_without_merge(self): argument
580 def setUp(self): argument
586 def tearDown(self): argument
591 def test_writes_to_file(self): argument
597 def test_set_backing_file_updates_existing_file(self): argument
613 def test_set_backing_file_does_not_overwrite_previous_backing_file(self): argument
629 def test_writes_stop_after_backing_file_removed(self): argument
639 def test_written_files_can_be_reloaded(self): argument
650 def test_backing_file_overrides_in_memory_values(self): argument
662 def test_backing_file_only_overrides_values_it_defines(self): argument
674 def test_shared_backing_file_propagates_state_to_get(self): argument
686 def test_shared_backing_file_propagates_state_to_has(self): argument
698 def test_shared_backing_file_propagates_state_from_discard(self): argument
711 def test_shared_backing_file_propagates_state_from_discard_namespace(self): argument
730 def setUp(self): argument
739 def read_from_file(self, file_path, merge=True): argument
744 def write_to_file(self, file_path): argument
752 def tearDown(self): argument
757 def test_set(self): argument
761 def test_get_missing(self): argument
765 def test_get_present(self): argument
770 def test_set_backing_file(self): argument
774 def test_has_missing(self): argument
778 def test_has_present(self): argument
783 def test_discard_missing(self): argument
787 def test_discard_present(self): argument
792 def test_discard_missing_namespace(self): argument
796 def test_discard_present_namespace(self): argument
802 def test_disable_backing_file(self): argument
806 def test_change_backing_file(self): argument
810 def test_read_from_a_non_backing_file(self): argument
817 def test_write_to_a_non_backing_file(self): argument
822 def setUp(self): argument
831 def test_properties_are_readwrite(self): argument
838 def test_properties_use_default_if_not_initialized(self): argument
844 def test_properties_do_not_collisde(self): argument
855 def test_properties_do_not_collide_across_different_state_objects(self): argument
866 def test_properties_do_not_collide_across_different_job_objects(self): argument
879 def test_properties_in_different_namespaces_do_not_collide(self): argument
893 def test_accepts_valid_status_code(self): argument
899 def test_accepts_valid_start_status_code(self): argument
903 def test_accepts_valid_end_status_code(self): argument
909 def test_rejects_invalid_status_code(self): argument
914 def test_rejects_invalid_start_status_code(self): argument
925 def test_rejects_invalid_end_status_code(self): argument
930 def test_accepts_valid_subdir(self): argument
935 def test_rejects_bad_subdir(self): argument
948 def test_accepts_valid_operation(self): argument
953 def test_rejects_bad_operation(self): argument
966 def test_simple_message(self): argument
971 def test_message_split_into_multiple_lines(self): argument
978 def test_message_with_tabs(self): argument
982 def test_message_with_custom_fields(self): argument
987 def assertRendered(self, rendered, status, subdir, operation, msg, argument
1002 def test_base_render(self): argument
1009 def test_subdir_render(self): argument
1016 def test_operation_render(self): argument
1023 def test_fields_render(self): argument
1031 def assertEntryEqual(self, lhs, rhs): argument
1037 def test_base_parse(self): argument
1046 def test_subdir_parse(self): argument
1055 def test_operation_parse(self): argument
1064 def test_extra_lines_parse(self): argument
1071 def setUp(self): argument
1080 def __init__(self): argument
1082 def increment(self): argument
1084 def decrement(self): argument
1090 def make_dummy_entry(self, rendered_text, start=False, end=False, argument
1110 def is_start(self): argument
1112 def is_end(self): argument
1114 def render(self): argument
1121 def test_render_includes_indent(self): argument
1129 def test_render_handles_start(self): argument
1135 def test_render_handles_end(self): argument
1143 def test_writes_toplevel_log(self): argument
1150 def test_uses_given_filenames(self): argument
1168 def test_filenames_are_mutable(self): argument
1186 def test_writes_subdir_logs(self): argument
1199 def test_writes_no_subdir_when_disabled(self): argument
1212 def test_indentation(self): argument
1227 def test_multiline_indent(self): argument
1239 def test_hook_is_called(self): argument
1251 def tearDown(self): argument
1257 def setUp(self): argument
1263 def _find_resultdir(self): argument
1268 def test_default_with_no_args_means_no_tags(self): argument
1275 def test_tag_argument_appended(self): argument
1281 def test_turning_on_use_sequence_adds_sequence_tags(self): argument
1294 def test_adding_automatic_test_tag_automatically_tags(self): argument
1301 def test_none_automatic_test_tag_turns_off_tagging(self): argument
1312 def test_empty_automatic_test_tag_turns_off_tagging(self): argument
1323 def test_subdir_tag_modifies_subdir_and_tag_only(self): argument
1330 def test_all_tag_components_together(self): argument
1341 def test_subtest_with_master_test_path_and_subdir(self): argument
1349 def test_subtest_all_tag_components_together_subdir(self): argument
1362 def setUp(self): argument
1385 def tearDown(self): argument
1391 def test_raises_test_error_if_outputdir_exists(self): argument
1398 def test_raises_test_error_if_outputdir_uncreatable(self): argument
1407 def test_creates_writable_directory(self): argument