

def test_find_namespace(self):
    '\n        Application.find_namespace() should return a namespace\n        '
    application = Application()
    application.add(FooCommand())
    self.assertEqual('foo', application.find_namespace('foo'), msg='.find_namespace() returns the given namespace if it exists')
    self.assertEqual('foo', application.find_namespace('f'), msg='.find_namespace() finds a namespace given an abbreviation')
    application.add(Foo2Command())
    self.assertEqual('foo', application.find_namespace('foo'), msg='.find_namespace() returns the given namespace if it exists')

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