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)
def test_match_rating_codex(jf, s1, s2): assert jf.match_rating_codex(s1) == s2
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)