Ejemplo n.º 1
0
def test_get_workout_valid_case_insensitive_dict_lookups(arg,expected):
   mixed_case = arg[:3].lower() + arg[3:].upper()
   count = 0
   for day in (arg,arg.upper(),arg.lower(), mixed_case):
       count += 1
       print('Assert '+str(count))
       assert get_workout_motd(day) == expected
Ejemplo n.º 2
0
def test_get_workout_invalid_dict_lookups_raise_exception():
    with pytest.raises(KeyError):
        get_workout_motd("not-a-day")
Ejemplo n.º 3
0
def test_get_workout_valid_case_insensitive_dict_lookups(arg, expected):
    mixed_case = arg[:3].lower() + arg[3:].upper()
    for day in (arg, arg.upper(), arg.lower(), mixed_case):
        assert get_workout_motd(day) == expected
Ejemplo n.º 4
0
def test_get_workout_valid_case_insensitive_dict_lookups(day, expected):
    assert get_workout_motd(day) == expected