예제 #1
0
def test_nysiis(jf, s1, s2):
    assert jf.nysiis(s1) == s2
예제 #2
0
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)
예제 #3
0
파일: test.py 프로젝트: YipYup/headphones
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)
예제 #4
0
파일: test.py 프로젝트: YipYup/headphones
def test_nysiis(jf, s1, s2):
    assert jf.nysiis(s1) == s2
예제 #5
0
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)