We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 67c973a commit 77ac1b8Copy full SHA for 77ac1b8
tests/specification_tests/test_causal_dag.py
@@ -197,6 +197,12 @@ def test_proper_backdoor_graph(self):
197
)
198
self.assertTrue(set(proper_backdoor_graph.edges).issubset(edges))
199
200
+ def test_proper_backdoor_graph_invalid_tratment(self):
201
+ """Test whether converting a Causal DAG to a proper back-door graph works correctly."""
202
+ causal_dag = CausalDAG(self.dag_dot_path)
203
+ with self.assertRaises(IndexError):
204
+ causal_dag.get_proper_backdoor_graph(["INVALID"], ["Y"])
205
+
206
def test_constructive_backdoor_criterion_should_hold(self):
207
"""Test whether the constructive criterion holds when it should."""
208
causal_dag = CausalDAG(self.dag_dot_path)
0 commit comments