

def test_find_ambiguous_namespace(self):
    '\n        Application.find_namespace() should raise an error when namespace is ambiguous\n        '
    application = Application()
    application.add(BarBucCommand())
    application.add(FooCommand())
    application.add(Foo2Command())
    self.assertRaisesRegexp(Exception, 'The namespace "f" is ambiguous \\(foo, foo1\\)\\.', application.find_namespace, 'f')

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