예제 #1
0
def test_no_arguments():
    with pytest.raises(TypeError) as e_info:
        calc_upper_lower()
예제 #2
0
def test_empty_string():
    assert calc_upper_lower("") == None
예제 #3
0
def test_invalid_sentence_02():
    assert calc_upper_lower("3432432432@!#") == "UPPER CASE 0\nLOWER CASE 0"
예제 #4
0
def test_invalid_sentence_01():
    assert calc_upper_lower(
        "#$$^%$%&@@#$~`!!!") == "UPPER CASE 0\nLOWER CASE 0"
예제 #5
0
def test_valid_sentence_02():
    assert calc_upper_lower(
        "Hello, Ronaldo!!!") == "UPPER CASE 2\nLOWER CASE 10"
예제 #6
0
def test_valid_sentence():
    assert calc_upper_lower("Hello world!") == "UPPER CASE 1\nLOWER CASE 9"