def test_istext(value, expected): assert istext(value) == expected
def test_is_text(): assert istext('a') assert not istext(1) assert not istext(None)