'Parsing a mode string that contains an empty sequence (either a C{+} or
C{-} followed directly by another C{+} or C{-}, or not followed by
anything at all) raises L{irc.IRCBadModes}.'

def test_emptyModeSequence(self):

    self.assertRaises(irc.IRCBadModes, irc.parseModes, '++k', [])
    self.assertRaises(irc.IRCBadModes, irc.parseModes, '-+k', [])
    self.assertRaises(irc.IRCBadModes, irc.parseModes, '+', [])
    self.assertRaises(irc.IRCBadModes, irc.parseModes, '-', [])
