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
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])
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] )
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))