

def find_alternative_commands_with_an_alias(self):
    foo_command = FooCommand()
    foo_command.set_aliases(['foo2'])
    application = Application()
    application.add(foo_command)
    result = application.find('foo')
    self.assertEqual(foo_command, result)

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