def test_command_decorator(self):
        application = Application()

        @application.command('decorated_foo', description='Foo')
        def decorated_foo_code(i, o):
            o.writeln('called')

        self.assertTrue(application.has('decorated_foo'))

        command = application.get('decorated_foo')
        self.assertEqual(command._code, decorated_foo_code)
        self.assertEqual(command.get_description(), 'Foo')
        self.assertTrue('decorated_foo_code' in command.get_aliases())
Read datasource properties in the running jboss instance.
dataset/ETHPy150Open sdispater/cleo/tests/test_application.py/ApplicationTest.test_command_decorator--crossover with--dataset/ETHPy150Open saltstack/salt/salt/modules/jboss7.py/read_datasource