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'}))
def test_kwarg_at_run(): f = trnsdcr([smpl_1, smpl_2, smpl_3, smpl_4]) assert(f('monkey', addtn='-') == ('monkey_one-_two-_three-_four-', {}))
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-', {}))
def test_gen(): f = trnsdcr([smpl_1, smpl_2, smpl_3, smpl_4]) assert(f('monkey') == ('monkey_one_two_three_four', {}))