module unit.wxgui.dialogs.eraeditor.controller

class unit.wxgui.dialogs.eraeditor.controller.EraEditorDialogControllerTestCase[source]

Bases: timelinelib.test.cases.unit.UnitTestCase

when_editor_opened_with_era(era)[source]
when_era_has_period(start, end)[source]
when_editing_a_new_era()[source]
when_editing_an_era()[source]
assert_era_unchanged()[source]
simulate_user_enters_period(start, end)[source]
simulate_user_enters_name(name)[source]
simulate_user_enters_color(color)[source]
simulate_user_clicks_ok()[source]
setUp()[source]

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

class unit.wxgui.dialogs.eraeditor.controller.describe_era_editor_dialog__period_field[source]

Bases: unit.wxgui.dialogs.eraeditor.controller.EraEditorDialogControllerTestCase

test_has_value_from_era()[source]
class unit.wxgui.dialogs.eraeditor.controller.describe_era_editor_dialog__name_field[source]

Bases: unit.wxgui.dialogs.eraeditor.controller.EraEditorDialogControllerTestCase

test_has_value_from_era()[source]
class unit.wxgui.dialogs.eraeditor.controller.describe_era_editor__saving[source]

Bases: unit.wxgui.dialogs.eraeditor.controller.EraEditorDialogControllerTestCase

test_saves_period()[source]
test_saves_name()[source]
test_saves_color()[source]
given_saving_valid_era()[source]
class unit.wxgui.dialogs.eraeditor.controller.describe_era_editor__validation[source]

Bases: unit.wxgui.dialogs.eraeditor.controller.EraEditorDialogControllerTestCase

test_name_field_must_not_be_empty()[source]
test_period_must_be_valid()[source]
test_period_can_be_long()[source]