def test_find_unique_name_but_namespace_name(self):
        application = Application()
        application.add(FooCommand())
        application.add(Foo1Command())
        application.add(Foo2Command())

        self.assertRaisesRegexp(
            Exception,
            'Command "foo1" is not defined',
            application.find,
            'foo1'
        )
Application.find() should raise an error when command is missing
dataset/ETHPy150Open sdispater/cleo/tests/test_application.py/ApplicationTest.test_find_unique_name_but_namespace_name