def test_find_ambiguous_namespace(self):
        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'
        )
Write a string as error output.
dataset/ETHPy150Open sdispater/cleo/tests/test_application.py/ApplicationTest.test_find_ambiguous_namespace--crossover with--dataset/ETHPy150Open sdispater/cleo/cleo/commands/command.py/Command.error