Example #1
0
 def test_macid_raises(macid: MACID) -> None:
     with pytest.raises(ValueError):
         admits_ici(macid, "D2", "D1")
Example #2
0
 def test_invalid_target(cid_content_recommender: CID) -> None:
     with pytest.raises(KeyError):
         admits_ici(cid_content_recommender, "P", "_")
Example #3
0
 def test_no_ici_content_recommender(cid_content_recommender: CID) -> None:
     assert not admits_ici(cid_content_recommender, "P", "O")
Example #4
0
 def test_invalid_decision(cid_content_recommender: CID) -> None:
     with pytest.raises(KeyError):
         admits_ici(cid_content_recommender, "_", "O")
Example #5
0
 def test_has_ici_content_recommender(cid_content_recommender: CID) -> None:
     assert admits_ici(cid_content_recommender, "P", "I")