def test_main_menu_inputs_5(): '''Testing number not in dictionary entry from menu prompt''' assert mailroom.menu_selection(MAIN_MENU, '5') is False
def test_main_menu_inputs_enter(): '''Test '' (enter or other key) entry from menu prompt''' assert mailroom.menu_selection(MAIN_MENU, '') is False
def test_main_menu_inputs_alph_aupper(): '''Test capitol letter entry from menu prompt''' assert mailroom.menu_selection(MAIN_MENU, 'T') is False
def test_main_menu_inputs_alpha_lower(): '''Test lower case letter (NOT 'q') entry from menu prompt''' assert mailroom.menu_selection(MAIN_MENU, 't') is False
def test_main_menu_inputs_q(): '''Test 'q' entry from menu prompt''' assert mailroom.menu_selection(MAIN_MENU, 'q') is True
def test_main_menu_inputs_0(): '''Test 0 entry from menu prompt''' assert mailroom.menu_selection(MAIN_MENU, 0) is False
def test_single_print_sub_menu_inputs_enter(): '''Test '' (enter or other key) entry from menu prompt''' assert mailroom.menu_selection(SINGLE_PRINT_SUB_MENU, '') is False
def test_main_menu_inputs_1(): '''Test 1 entry from menu prompt- requires user promp''' with pytest.raises(IOError): mailroom.menu_selection(SINGLE_PRINT_SUB_MENU, '1')
def test_single_print_sub_menu_inputs_5(): '''Testing number not in dictionary entry from menu prompt''' assert mailroom.menu_selection(SINGLE_PRINT_SUB_MENU, '5') is False
def test_single_print_sub_menu_inputs_alphaLower(): '''Test lower case letter (NOT 'q') entry from menu prompt''' assert mailroom.menu_selection(SINGLE_PRINT_SUB_MENU, 't') is False
def test_single_print_sub_menu_inputs_alphaUpper(): '''Test capitol letter entry from menu prompt''' assert mailroom.menu_selection(SINGLE_PRINT_SUB_MENU, 'T') is False
def test_single_print_sub_menu_inputs_0(): '''Test 0 entry from menu prompt''' assert mailroom.menu_selection(SINGLE_PRINT_SUB_MENU, 0) is False
def test_single_print_sub_menu_inputs_q(): '''Test 'q' entry from menu prompt''' assert mailroom.menu_selection(SINGLE_PRINT_SUB_MENU, 'q') is True