

def test_find_unique_name_but_namespace_name(self):
    '\n        Application.find() should raise an error when command is missing\n        '
    application = Application()
    application.add(FooCommand())
    application.add(Foo1Command())
    application.add(Foo2Command())
    self.assertRaisesRegexp(Exception, 'Command "foo1" is not defined', application.find, 'foo1')

dataset/ETHPy150Open sdispater/cleo/tests/test_application.py ApplicationTest.test_find_unique_name_but_namespace_name/original