Пример #1
0
 def _assert_order(self, name_tuples, expected_flag_order):
     c = Context(args=[Argument(names=x) for x in name_tuples])
     expected = [c.help_for(x) for x in expected_flag_order]
     assert c.help_tuples() == expected
Пример #2
0
 def _assert_order(self, name_tuples, expected_flag_order):
     ctx = Context(args=[Argument(names=x) for x in name_tuples])
     return eq_(ctx.help_tuples(),
                [ctx.help_for(x) for x in expected_flag_order])
Пример #3
0
 def _assert_order(self, name_tuples, expected_flag_order):
     c = Context(args=[Argument(names=x) for x in name_tuples])
     expected = [c.help_for(x) for x in expected_flag_order]
     assert c.help_tuples() == expected
Пример #4
0
 def _assert_order(self, name_tuples, expected_flag_order):
     ctx = Context(args=[Argument(names=x) for x in name_tuples])
     return eq_(
         ctx.help_tuples(),
         [ctx.help_for(x) for x in expected_flag_order]
     )
Пример #5
0
 def _assert_order(self, name_tuples, expected_flag_order):
     ctx = Context(args=map(lambda x: Argument(names=x), name_tuples))
     return eq_(ctx.help_tuples(), map(ctx.help_for, expected_flag_order))