def test_nysiis(jf, s1, s2): assert jf.nysiis(s1) == s2
def test_nysiis_type(jf): assert jf.nysiis(u'abc') == 'ABC' with pytest.raises(TypeError) as exc: jf.nysiis(b'abc') assert 'expected' in str(exc.value)
def test_nysiis_type(jf): assert jf.nysiis(u"abc") == "ABC" with pytest.raises(TypeError) as exc: jf.nysiis(b"abc") assert "expected" in str(exc.value)