def test_validate_text1(): for s in ['ascii', 'linechar']: assert_equal(validate_text(s), s)
def test_validate_text2(): for s in ['no', 3]: with pytest.raises(ValueError): validate_text(s)
def test_validate_text1(): for s in ['ascii', 'linechar']: assert validate_text(s) == s