module unit.wxgui.dialogs.editcategory.controller

class unit.wxgui.dialogs.editcategory.controller.EditCategoryDialogControllerTestCase[source]

Bases: timelinelib.test.cases.unit.UnitTestCase

setUp()[source]

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

class unit.wxgui.dialogs.editcategory.controller.describe_editing_a_new_category[source]

Bases: unit.wxgui.dialogs.editcategory.controller.EditCategoryDialogControllerTestCase

setUp()[source]

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

test_categories_are_populated()[source]
test_name_is_initialized_to_empty_string()[source]
test_color_is_initialized_to_red()[source]
test_font_color_is_initialized_to_black()[source]
test_parent_is_initialized_to_none()[source]
class unit.wxgui.dialogs.editcategory.controller.describe_editing_an_existing_category[source]

Bases: unit.wxgui.dialogs.editcategory.controller.EditCategoryDialogControllerTestCase

setUp()[source]

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

test_category_can_be_retrieved()[source]
test_categories_are_populated()[source]
test_name_is_initialized_from_edited_category()[source]
test_color_is_initialixed_from_edited_category()[source]
test_font_color_is_initialixed_from_edited_category()[source]
test_parent_is_initialized_from_edited_category()[source]
class unit.wxgui.dialogs.editcategory.controller.describe_saving_a_category[source]

Bases: unit.wxgui.dialogs.editcategory.controller.EditCategoryDialogControllerTestCase

setUp()[source]

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

test_saved_category_has_name_from_view()[source]
test_saved_category_has_color_from_view()[source]
test_saved_category_has_font_color_from_view()[source]
test_saved_category_has_parent_from_view()[source]
test_the_dialog_is_closed()[source]
class unit.wxgui.dialogs.editcategory.controller.describe_saving_a_category_with_an_invalid_name[source]

Bases: unit.wxgui.dialogs.editcategory.controller.EditCategoryDialogControllerTestCase

setUp()[source]

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

test_the_category_is_not_saved_to_db()[source]
test_the_view_shows_an_error_message()[source]
test_the_dialog_is_not_closed()[source]
class unit.wxgui.dialogs.editcategory.controller.describe_saving_a_category_with_a_used_name[source]

Bases: unit.wxgui.dialogs.editcategory.controller.EditCategoryDialogControllerTestCase

setUp()[source]

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

test_the_category_is_not_saved_to_db()[source]
test_the_view_shows_an_error_message()[source]
test_the_dialog_is_not_closed()[source]