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'
        )
Initialize environment to use command-line tool from inside a project
dataset/ETHPy150Open sdispater/cleo/tests/test_application.py/ApplicationTest.test_find_unique_name_but_namespace_name--crossover with--dataset/ETHPy150Open scrapy/scrapy/scrapy/utils/conf.py/init_env