Exemplo n.º 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
Exemplo n.º 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])
Exemplo n.º 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
Exemplo n.º 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]
     )
Exemplo n.º 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))