def test_opt(self): @clize def fn1(one='1', two='2'): return one, two self.assertEqual( run_group((fn1,), ('group', 'fn1', '--one=one', '--two', 'two')), ('one', 'two') )
def test_pos(self): @clize def fn1(one, two): return one, two self.assertEqual( run_group((fn1,), ('group', 'fn1', 'one', 'two')), ('one', 'two') )