Esempio n. 1
0
def test_has_alphanumeric_last_empty():
    with pytest.raises(TypeError):
        has_alphanumeric_last()
Esempio n. 2
0
def test_has_alphanumeric_white_space_in_the_middle():
    assert has_alphanumeric_last("Some title") is True
Esempio n. 3
0
def test_has_alphanumeric_last_None():
    with pytest.raises(TypeError):
        has_alphanumeric_last(None)
Esempio n. 4
0
def test_has_alphanumeric_last_empty_string():
    with pytest.raises(IndexError):
        has_alphanumeric_last("")
Esempio n. 5
0
def test_has_alphanumeric_last_period():
    assert has_alphanumeric_last("ABcD.") is False
Esempio n. 6
0
def test_has_alphanumeric_last_line_break():
    assert has_alphanumeric_last("ABcD\n") is False
Esempio n. 7
0
def test_has_alphanumeric_last_poitive():
    assert has_alphanumeric_last("ABcD") is True