Ejemplo n.º 1
0
def test_unused_kwarg_at_run():
    f = trnsdcr([smpl_1, smpl_2, smpl_3, smpl_4])
    assert(f('monkey',
             foo='bar') == ('monkey_one_two_three_four',
                            {'foo': 'bar'}))
Ejemplo n.º 2
0
def test_kwarg_at_run():
    f = trnsdcr([smpl_1, smpl_2, smpl_3, smpl_4])
    assert(f('monkey', addtn='-') == ('monkey_one-_two-_three-_four-', {}))
Ejemplo n.º 3
0
def test_same_kwarg_at_build_and_run_diff_value():
    f = trnsdcr([smpl_1, smpl_2, smpl_3, smpl_4], addtn='-')
    assert(f('monkey', addtn='&') == ('monkey_one-_two-_three-_four-', {}))
Ejemplo n.º 4
0
def test_gen():
    f = trnsdcr([smpl_1, smpl_2, smpl_3, smpl_4])
    assert(f('monkey') == ('monkey_one_two_three_four', {}))