def test_all(self):
        application = Application()
        commands = application.all()

        self.assertEqual(
            'HelpCommand',
            commands['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'
        )
Adds a view to the category
dataset/ETHPy150Open sdispater/cleo/tests/test_application.py/ApplicationTest.test_all--crossover with--dataset/ETHPy150Open django-bmf/django-bmf/djangobmf/core/category.py/Category.add_view