def test_find_mice_empty(s): expected = [ MaximallyIrreducibleCauseOrEffect(_null_ria(direction, (), ())) for direction in directions ] assert all(s.find_mice(mice.direction, mice.mechanism) == mice for mice in expected)
def test_find_mice_empty(s): expected = [ MaximallyIrreducibleCauseOrEffect(_null_ria(direction, (), ())) for direction in directions ] assert all( s.find_mice(mice.direction, mice.mechanism) == mice for mice in expected)
def test_null_ria(): direction = Direction.CAUSE mechanism = (0, ) purview = (1, ) repertoire = "repertoire" null_ria = models._null_ria(direction, mechanism, purview, repertoire) assert null_ria.direction == direction assert null_ria.mechanism == mechanism assert null_ria.purview == purview assert null_ria.partition is None assert null_ria.repertoire == "repertoire" assert null_ria.partitioned_repertoire is None assert null_ria.phi == 0