

def test_find_command_equal_namesapce(self):
    '\n        Application.find() returns a command if it has a namespace with the same name\n        '
    application = Application()
    application.add(Foo3Command())
    application.add(Foo4Command())
    self.assertTrue(isinstance(application.find('foo3:bar'), Foo3Command), msg='.find() returns the good command even if a namespace has same name')
    self.assertTrue(isinstance(application.find('foo3:bar:toh'), Foo4Command), msg='.find() returns a command even if its namespace equals another command name')

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