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