def test_do_command_no_command_no_args(self): """ Ensure proper behavior when when a None command. """ mock_client = self.mox.CreateMockAnything() self.mox.StubOutWithMock(CommandHandler, "__init__") CommandHandler.__init__(mock_client) self.mox.ReplayAll() cmdhandler = CommandHandler(mock_client) cmdhandler.do_command(None)
def test_do_command_no_args(self): """ Test handling of commands with no arguments. """ mock_command = self.mox.CreateMockAnything() mock_client = self.mox.CreateMockAnything() self.mox.StubOutWithMock(CommandHandler, "__init__") CommandHandler.__init__(mock_client) self.mox.ReplayAll() cmdhandler = CommandHandler(mock_client) cmdhandler.do_command(mock_command)