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