'Passing an argument to modes that take no parameters results in
L{IRCClient.modeChanged} not being called and an error being logged.'

def test_tooManyModeParameters(self):

    self._sendModeChange('+s', 'wrong')
    self._checkModeChange([])
    errors = self.flushLoggedErrors(irc.IRCBadModes)
    self.assertEqual(len(errors), 1)
    self.assertSubstring('Too    many    parameters', errors[0].getErrorMessage())
