def test_account_irreducible_causes_and_effects(): cause = causal_link(direction=Direction.CAUSE) effect = causal_link(direction=Direction.EFFECT) account = models.Account((cause, effect)) assert account.irreducible_causes == (cause, ) assert account.irreducible_effects == (effect, )
def account(links=()): return models.Account(links)