

def test_all(self):
    '\n        Application.get_all() returns all comands of the application\n        '
    application = Application()
    commands = application.all()
    self.assertEqual('HelpCommand', self['help'].__class__.__name__, msg='.all() returns the registered commands')
    application.add(FooCommand())
    self.assertEqual(1, len(application.all('foo')), msg='.all() take a namespace as first argument')

dataset/ETHPy150Open sdispater/cleo/tests/test_application.py ApplicationTest.test_all/VarMisuse@32/64 `commands`->`self`