예제 #1
0
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, )
예제 #2
0
def account(links=()):
    return models.Account(links)