

def test_argument_decorator_order(self):
    application = Application()

    @application.command('decorated_foo', description='Foo command')
    @application.argument('foo', description='Foo argument', required=True)
    @application.argument('bar', description='Bar argument', required=True)
    def decorated_foo_code(i, o):
        'Foo Description'
        o.writeln('called')
    command = application.get('decorated_foo')
    application.assertEqual(['bar', 'foo'], list(map((lambda a: a.get_name()), command.get_definition().get_arguments())))

dataset/ETHPy150Open sdispater/cleo/tests/test_application.py ApplicationTest.test_argument_decorator_order/VarMisuse@90/132 `self`->`application`