def test_init(self): """ Command.__init__() behaves properly """ self.assertRaises(Exception, Command) command = Command('foo:bar') self.assertEqual( 'foo:bar', command.get_name(), msg='__init__() takes the command name as its first argument' )