def test_add_with_dictionary(self):
        application = Application()

        foo = application.add(foo_commmand)
        self.assertTrue(isinstance(foo, Command))
        self.assertEqual('foo:bar1', foo.get_name())
Application.add() accepts a dictionary as argument.
dataset/ETHPy150Open sdispater/cleo/tests/test_application.py/ApplicationTest.test_add_with_dictionary