module unit.wxgui.dialogs.editevent.controller

class unit.wxgui.dialogs.editevent.controller.EditEventDialogControllerTestCase[source]

Bases: timelinelib.test.cases.unit.UnitTestCase

setUp()[source]

Hook method for setting up the test fixture before exercising it.

when_editing_a_new_event()[source]
when_editor_opened_with_time(time, event=None)[source]
when_editor_opened_with_period(start, end)[source]
when_editor_opened_with_event(event)[source]
when_editor_opened_with_num_event(event)[source]
when_editor_opened_with(start, end, event)[source]
when_editor_opened_with_num(start, end, event)[source]
simulate_user_enters_period(start, end)[source]
simulate_user_enters_num_start_time(time)[source]
simulate_user_enters_num_end_time(time)[source]
simulate_user_clicks_ok()[source]
simulate_user_clicks_save_and_duplicate()[source]
simulate_user_checkes_locked_checkbox()[source]
simulate_user_uncheckes_locked_checkbox()[source]
simulate_container_changed()[source]
simulate_user_selects_a_container(subevent)[source]
simulate_user_clicks_enlarge_button(enlarged=True)[source]
get_saved_event()[source]
assert_start_time_set_to(time)[source]
assert_end_time_set_to(time)[source]
assert_no_event_saved()[source]
class unit.wxgui.dialogs.editevent.controller.describe_period_field[source]

Bases: unit.wxgui.dialogs.editevent.controller.EditEventDialogControllerTestCase

test_has_value_from_first_argument_if_only_one_given()[source]
test_has_value_from_second_argument()[source]
test_has_value_from_event()[source]
class unit.wxgui.dialogs.editevent.controller.describe_period_field_period[source]

Bases: unit.wxgui.dialogs.editevent.controller.EditEventDialogControllerTestCase

test_is_shown_if_shown_previous_time()[source]
test_is_hidden_if_hidden_previous_time()[source]
class unit.wxgui.dialogs.editevent.controller.describe_period_field_time[source]

Bases: unit.wxgui.dialogs.editevent.controller.EditEventDialogControllerTestCase

test_is_shown_if_shown_previous_time()[source]
test_is_hidden_if_hidden_previous_time()[source]
class unit.wxgui.dialogs.editevent.controller.describe_fuzzy_checkbox[source]

Bases: unit.wxgui.dialogs.editevent.controller.EditEventDialogControllerTestCase

test_is_not_checked_by_default()[source]
test_has_value_from_event()[source]
class unit.wxgui.dialogs.editevent.controller.describe_locked_checkbox[source]

Bases: unit.wxgui.dialogs.editevent.controller.EditEventDialogControllerTestCase

test_is_not_checked_by_default()[source]
test_has_value_from_event()[source]
test_when_locked_checked_view_changes()[source]
test_enable_disable_locked()[source]
class unit.wxgui.dialogs.editevent.controller.describe_start_is_in_history[source]

Bases: unit.wxgui.dialogs.editevent.controller.EditEventDialogControllerTestCase

test_new_event_starting_in_history()[source]
test_event_not_starting_in_history()[source]
test_event_starting_in_history()[source]
class unit.wxgui.dialogs.editevent.controller.describe_ends_today_checkbox[source]

Bases: unit.wxgui.dialogs.editevent.controller.EditEventDialogControllerTestCase

test_is_not_checked_by_default()[source]
test_has_value_from_event()[source]
test_no_endtime_check()[source]
class unit.wxgui.dialogs.editevent.controller.describe_text_field[source]

Bases: unit.wxgui.dialogs.editevent.controller.EditEventDialogControllerTestCase

test_has_no_value_by_default()[source]
test_has_value_from_event()[source]
class unit.wxgui.dialogs.editevent.controller.describe_category_field[source]

Bases: unit.wxgui.dialogs.editevent.controller.EditEventDialogControllerTestCase

test_has_no_value_by_default()[source]
test_has_value_from_event()[source]
class unit.wxgui.dialogs.editevent.controller.describe_additional_data[source]

Bases: unit.wxgui.dialogs.editevent.controller.EditEventDialogControllerTestCase

test_is_populated_from_event()[source]
test_is_not_set_for_new_events()[source]
class unit.wxgui.dialogs.editevent.controller.describe_add_more_checkbox[source]

Bases: unit.wxgui.dialogs.editevent.controller.EditEventDialogControllerTestCase

test_is_hidden_when_editing_existing_event()[source]
test_is_shown_when_editing_new_event()[source]
class unit.wxgui.dialogs.editevent.controller.describe_saving[source]

Bases: object

given_saving_valid_event()[source]
test_saves_start_time()[source]
test_saves_end_time()[source]
test_saves_text()[source]
test_saves_category()[source]
test_saves_fuzzy()[source]
test_saves_locked()[source]
test_saves_ends_today()[source]
test_saves_data()[source]
class unit.wxgui.dialogs.editevent.controller.describe_saving_new[source]

Bases: unit.wxgui.dialogs.editevent.controller.EditEventDialogControllerTestCase, unit.wxgui.dialogs.editevent.controller.describe_saving

setUp()[source]

Hook method for setting up the test fixture before exercising it.

test_dialog_closes_after_saving()[source]
test_dialog_closes_after_saving_and_pos_size_data_saved_to_config()[source]
class unit.wxgui.dialogs.editevent.controller.describe_saving_existing[source]

Bases: unit.wxgui.dialogs.editevent.controller.EditEventDialogControllerTestCase, unit.wxgui.dialogs.editevent.controller.describe_saving

setUp()[source]

Hook method for setting up the test fixture before exercising it.

class unit.wxgui.dialogs.editevent.controller.describe_validation[source]

Bases: unit.wxgui.dialogs.editevent.controller.EditEventDialogControllerTestCase

test_period_must_be_valid()[source]
test_period_can_be_long()[source]
test_time_cant_change_when_event_is_locked()[source]
class unit.wxgui.dialogs.editevent.controller.describe_ends_today_in_container[source]

Bases: unit.wxgui.dialogs.editevent.controller.EditEventDialogControllerTestCase

test_set_ends_today_on_subevent_extends_container_period()[source]
test_container_allows_ends_today()[source]
test_update_event_delete()[source]
test_update_event_register()[source]
test_update_event_()[source]
class unit.wxgui.dialogs.editevent.controller.describe_enlarging[source]

Bases: unit.wxgui.dialogs.editevent.controller.EditEventDialogControllerTestCase

test_enlarging_click_changes_pos_and_size()[source]
class unit.wxgui.dialogs.editevent.controller.describe_changing_container[source]

Bases: unit.wxgui.dialogs.editevent.controller.EditEventDialogControllerTestCase

test()[source]
class unit.wxgui.dialogs.editevent.controller.describe_exceptions[source]

Bases: unit.wxgui.dialogs.editevent.controller.EditEventDialogControllerTestCase

test_start_changed()[source]
test_end_changed()[source]
test_invalid_period()[source]
test_ends_today()[source]
class unit.wxgui.dialogs.editevent.controller.describe_save_and_duplicate[source]

Bases: unit.wxgui.dialogs.editevent.controller.EditEventDialogControllerTestCase

test_on_duplicate()[source]