• Home
  • Raw
  • Download

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
106 def test_public_attributes_initialized(self): argument
124 def test_required_attributes_not_none(self): argument
143 def test_autodir_is_not_none(self): argument
148 def test_clientdir_is_not_none(self): argument
154 def make_job(self, autodir, server): argument
169 def setUp(self): argument
174 def test_always_client_dirs(self): argument
184 def test_dynamic_dirs(self): argument
198 def setUp(self): argument
207 def tearDown(self): argument
211 def test_pop_fails_without_push(self): argument
215 def test_push_changes_to_subdir(self): argument
222 def test_push_creates_subdir(self): argument
229 def test_push_handles_absolute_paths(self): argument
238 def test_pop_restores_context(self): argument
246 def test_push_and_pop_are_fifo(self): argument
260 def setUp(self): argument
266 def tearDown(self): argument
271 def test_passes_if_dir_exists(self): argument
278 def test_fails_if_not_writable_and_dir_doesnt_exist(self): argument
284 def test_fails_if_file_already_exists(self): argument
291 def test_passes_if_writable_and_dir_exists(self): argument
298 def test_creates_dir_if_writable_and_dir_doesnt_exist(self): argument
304 def test_recursive_creates_dir_if_writable_and_dir_doesnt_exist(self): argument
310 def test_fails_if_writable_and_file_exists(self): argument
318 def test_fails_if_writable_and_no_permission_to_create(self): argument
325 def test_passes_if_not_is_writable_and_dir_not_writable(self): argument
332 def test_fails_if_is_writable_but_dir_not_writable(self): argument
340 def test_fails_if_no_path_and_not_writable(self): argument
345 def test_no_path_and_and_not_writable_creates_tempdir(self): argument
355 def setUp(self): argument
359 def test_undefined_name_returns_key_error(self): argument
363 def test_undefined_name_returns_default(self): argument
367 def test_none_is_valid_default(self): argument
372 def test_get_returns_set_values(self): argument
377 def test_get_ignores_default_when_value_is_defined(self): argument
382 def test_set_only_sets_one_value(self): argument
388 def test_set_works_with_multiple_names(self): argument
395 def test_multiple_sets_override_each_other(self): argument
401 def test_get_with_default_does_not_set(self): argument
406 def test_set_in_one_namespace_ignores_other(self): argument
412 def test_namespaces_do_not_collide(self): argument
419 def test_discard_does_nothing_on_undefined_namespace(self): argument
424 def test_discard_does_nothing_on_missing_name(self): argument
431 def test_discard_deletes_name(self): argument
438 def test_discard_doesnt_touch_other_values(self): argument
449 def test_has_is_true_for_all_set_values(self): argument
458 def test_has_is_false_for_all_unset_values(self): argument
465 def test_discard_namespace_drops_all_values(self): argument
473 def test_discard_namespace_works_on_missing_namespace(self): argument
477 def test_discard_namespace_doesnt_touch_other_values(self): argument
488 def setUp(self): argument
494 def tearDown(self): argument
499 def test_set_is_persistent(self): argument
506 def test_discard_is_persistent(self): argument
514 def test_discard_namespace_is_persistent(self): argument
523 def setUp(self): argument
529 def tearDown(self): argument
534 def test_write_read_transfers_all_state(self): argument
547 def test_read_overwrites_in_memory(self): argument
557 def test_read_updates_persistent_file(self): argument
572 def test_read_without_merge(self): argument
586 def setUp(self): argument
592 def tearDown(self): argument
597 def test_writes_to_file(self): argument
603 def test_set_backing_file_updates_existing_file(self): argument
619 def test_set_backing_file_does_not_overwrite_previous_backing_file(self): argument
635 def test_writes_stop_after_backing_file_removed(self): argument
645 def test_written_files_can_be_reloaded(self): argument
656 def test_backing_file_overrides_in_memory_values(self): argument
668 def test_backing_file_only_overrides_values_it_defines(self): argument
680 def test_shared_backing_file_propagates_state_to_get(self): argument
692 def test_shared_backing_file_propagates_state_to_has(self): argument
704 def test_shared_backing_file_propagates_state_from_discard(self): argument
717 def test_shared_backing_file_propagates_state_from_discard_namespace(self): argument
736 def setUp(self): argument
745 def read_from_file(self, file_path, merge=True): argument
750 def write_to_file(self, file_path): argument
758 def tearDown(self): argument
763 def test_set(self): argument
767 def test_get_missing(self): argument
771 def test_get_present(self): argument
776 def test_set_backing_file(self): argument
780 def test_has_missing(self): argument
784 def test_has_present(self): argument
789 def test_discard_missing(self): argument
793 def test_discard_present(self): argument
798 def test_discard_missing_namespace(self): argument
802 def test_discard_present_namespace(self): argument
808 def test_disable_backing_file(self): argument
812 def test_change_backing_file(self): argument
816 def test_read_from_a_non_backing_file(self): argument
823 def test_write_to_a_non_backing_file(self): argument
828 def setUp(self): argument
837 def test_properties_are_readwrite(self): argument
844 def test_properties_use_default_if_not_initialized(self): argument
850 def test_properties_do_not_collisde(self): argument
861 def test_properties_do_not_collide_across_different_state_objects(self): argument
872 def test_properties_do_not_collide_across_different_job_objects(self): argument
885 def test_properties_in_different_namespaces_do_not_collide(self): argument
899 def test_accepts_valid_status_code(self): argument
905 def test_accepts_valid_start_status_code(self): argument
909 def test_accepts_valid_end_status_code(self): argument
915 def test_rejects_invalid_status_code(self): argument
920 def test_rejects_invalid_start_status_code(self): argument
931 def test_rejects_invalid_end_status_code(self): argument
936 def test_accepts_valid_subdir(self): argument
941 def test_rejects_bad_subdir(self): argument
954 def test_accepts_valid_operation(self): argument
959 def test_rejects_bad_operation(self): argument
972 def test_simple_message(self): argument
977 def test_message_split_into_multiple_lines(self): argument
984 def test_message_with_tabs(self): argument
988 def test_message_with_custom_fields(self): argument
993 def assertRendered(self, rendered, status, subdir, operation, msg, argument
1008 def test_base_render(self): argument
1015 def test_subdir_render(self): argument
1022 def test_operation_render(self): argument
1029 def test_fields_render(self): argument
1037 def assertEntryEqual(self, lhs, rhs): argument
1043 def test_base_parse(self): argument
1052 def test_subdir_parse(self): argument
1061 def test_operation_parse(self): argument
1070 def test_extra_lines_parse(self): argument
1077 def setUp(self): argument
1086 def __init__(self): argument
1088 def increment(self): argument
1090 def decrement(self): argument
1096 def make_dummy_entry(self, rendered_text, start=False, end=False, argument
1116 def is_start(self): argument
1118 def is_end(self): argument
1120 def render(self): argument
1127 def test_render_includes_indent(self): argument
1135 def test_render_handles_start(self): argument
1141 def test_render_handles_end(self): argument
1149 def test_writes_toplevel_log(self): argument
1156 def test_uses_given_filenames(self): argument
1174 def test_filenames_are_mutable(self): argument
1192 def test_writes_subdir_logs(self): argument
1205 def test_writes_no_subdir_when_disabled(self): argument
1218 def test_indentation(self): argument
1233 def test_multiline_indent(self): argument
1245 def test_hook_is_called(self): argument
1257 def tearDown(self): argument
1263 def setUp(self): argument
1269 def _find_resultdir(self): argument
1274 def test_default_with_no_args_means_no_tags(self): argument
1281 def test_tag_argument_appended(self): argument
1287 def test_turning_on_use_sequence_adds_sequence_tags(self): argument
1300 def test_adding_automatic_test_tag_automatically_tags(self): argument
1307 def test_none_automatic_test_tag_turns_off_tagging(self): argument
1318 def test_empty_automatic_test_tag_turns_off_tagging(self): argument
1329 def test_subdir_tag_modifies_subdir_and_tag_only(self): argument
1336 def test_all_tag_components_together(self): argument
1347 def test_subtest_with_master_test_path_and_subdir(self): argument
1355 def test_subtest_all_tag_components_together_subdir(self): argument
1368 def setUp(self): argument
1391 def tearDown(self): argument
1397 def test_raises_test_error_if_outputdir_exists(self): argument
1404 def test_raises_test_error_if_outputdir_uncreatable(self): argument
1413 def test_creates_writable_directory(self): argument