Beispiel #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)
Beispiel #2
0
def test_match_rating_codex(jf, s1, s2):
    assert jf.match_rating_codex(s1) == s2
Beispiel #3
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)
Beispiel #4
0
def test_match_rating_codex(jf, s1, s2):
    assert jf.match_rating_codex(s1) == s2
Beispiel #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)