コード例 #1
0
def test_soundex(jf, s1, code):
    assert jf.soundex(s1) == code
コード例 #2
0
def test_soundex_type(jf):
    assert jf.soundex(u'ABC') == 'A120'
    with pytest.raises(TypeError) as exc:
        jf.soundex(b'ABC')
    assert 'expected' in str(exc.value)
コード例 #3
0
ファイル: test.py プロジェクト: YipYup/headphones
def test_soundex_type(jf):
    assert jf.soundex(u'ABC') == 'A120'
    with pytest.raises(TypeError) as exc:
        jf.soundex(b'ABC')
    assert 'expected' in str(exc.value)
コード例 #4
0
ファイル: test.py プロジェクト: YipYup/headphones
def test_soundex(jf, s1, code):
    assert jf.soundex(s1) == code
コード例 #5
0
def test_soundex_type(jf):
    assert jf.soundex(u"ABC") == "A120"
    with pytest.raises(TypeError) as exc:
        jf.soundex(b"ABC")
    assert "expected" in str(exc.value)