示例#1
0
def test_main_menu_inputs_5():
    '''Testing number not in dictionary entry from menu prompt'''
    assert mailroom.menu_selection(MAIN_MENU, '5') is False
示例#2
0
def test_main_menu_inputs_enter():
    '''Test '' (enter or other key) entry from menu prompt'''
    assert mailroom.menu_selection(MAIN_MENU, '') is False
示例#3
0
def test_main_menu_inputs_alph_aupper():
    '''Test capitol letter entry from menu prompt'''
    assert mailroom.menu_selection(MAIN_MENU, 'T') is False
示例#4
0
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
示例#5
0
def test_main_menu_inputs_q():
    '''Test 'q' entry from menu prompt'''
    assert mailroom.menu_selection(MAIN_MENU, 'q') is True
示例#6
0
def test_main_menu_inputs_0():
    '''Test 0 entry from menu prompt'''
    assert mailroom.menu_selection(MAIN_MENU, 0) is False
示例#7
0
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
示例#8
0
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')
示例#9
0
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
示例#10
0
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
示例#11
0
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
示例#12
0
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
示例#13
0
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