

def test_constructor(self):
    '\n        Application.__init__() behaves properly\n        '
    application = Application('foo', 'bar')
    self.assertEqual('foo', application.get_name(), msg='__init__() takes the application name as its first argument')
    self.assertEqual('bar', application.get_version(), msg='__init__() takes the application version as its second argument')
    self.assertEqual(['help', 'list'].sort(), list(application.all().keys()).sort(), msg='__init__() registered the help and list commands by default')

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