예제 #1
0
 def test_macid_raises(macid: MACID) -> None:
     with pytest.raises(ValueError):
         admits_indir_voc(macid, "D2", "D1")
예제 #2
0
 def test_invalid_target(cid_fitness_tracker: CID) -> None:
     with pytest.raises(KeyError):
         admits_indir_voc(cid_fitness_tracker, "C", "_")
예제 #3
0
 def test_no_indir_voc_fitness_tracker(cid_fitness_tracker: CID) -> None:
     assert not admits_indir_voc(cid_fitness_tracker, "C", "TF")
예제 #4
0
 def test_invalid_decision(cid_fitness_tracker: CID) -> None:
     with pytest.raises(KeyError):
         admits_indir_voc(cid_fitness_tracker, "_", "TF")
예제 #5
0
 def test_has_indir_voc_fitness_tracker(cid_fitness_tracker: CID) -> None:
     assert admits_indir_voc(cid_fitness_tracker, "C", "SC")