def test_has_alphanumeric_last_empty(): with pytest.raises(TypeError): has_alphanumeric_last()
def test_has_alphanumeric_white_space_in_the_middle(): assert has_alphanumeric_last("Some title") is True
def test_has_alphanumeric_last_None(): with pytest.raises(TypeError): has_alphanumeric_last(None)
def test_has_alphanumeric_last_empty_string(): with pytest.raises(IndexError): has_alphanumeric_last("")
def test_has_alphanumeric_last_period(): assert has_alphanumeric_last("ABcD.") is False
def test_has_alphanumeric_last_line_break(): assert has_alphanumeric_last("ABcD\n") is False
def test_has_alphanumeric_last_poitive(): assert has_alphanumeric_last("ABcD") is True