def test_find_with_ambiguous_abbreviations(self):
        data = [
            ['f', 'Command "f" is not defined\.'],
            ['a', 'Command "a" is ambiguous \(afoobar, afoobar1 and 1 more\)\.'],
            ['foo:b', 'Command "foo:b" is ambiguous \(foo1:bar, foo:bar and 1 more\)\.'],
        ]

        application = Application()
        application.add(FooCommand())
        application.add(Foo1Command())
        application.add(Foo2Command())

        for d in data:
            self.assertRaisesRegexp(
                Exception,
                d[1],
                application.find,
                d[0]
            )
Application.find() should raise an error when there is ambiguosity
dataset/ETHPy150Open sdispater/cleo/tests/test_application.py/ApplicationTest.test_find_with_ambiguous_abbreviations