def test_bar(): assert dope.build(bar, 10) == 10 assert dope.build(bar, x=10) == 10 assert dope.build(bar) == ALPHA_BETA
def test_foo(): assert dope.build(foo, delta=100) == (ALPHA, BETA, GAMMA, 100) assert dope.build(foo) == (ALPHA, BETA, GAMMA, DELTA)