Пример #1
0
 def test_positive_quantitative_voc(cid_3node: CID) -> None:
     cid_3node.remove_edge("S", "D")
     assert quantitative_voc(cid_3node, "S") == pytest.approx(
         1)  # the agent at D no longer knows the value of S
Пример #2
0
 def test_invalid_target(cid_3node: CID) -> None:
     with pytest.raises(KeyError):
         quantitative_voc(cid_3node, "_")
Пример #3
0
 def test_no_quantitative_voc(cid_3node: CID) -> None:
     assert set(admits_voc_list(cid_3node)) == {"U", "S"}
     assert quantitative_voc(cid_3node, "S") == pytest.approx(
         0)  # in this parameterisation, S has no value of control