示例#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)