'The CHANMODES ISUPPORT parameter is parsed into a C{dict} giving the
four mode categories, C{\'addressModes\'}, C{\'param\'}, C{\'setParam\'}, and
C{\'noParam\'}.'

def test_support_CHANMODES(self):

    self._testFeatureDefault('CHANMODES')
    self._testFeatureDefault('CHANMODES', [('CHANMODES', 'b,,lk,')])
    self._testFeatureDefault('CHANMODES', [('CHANMODES', 'b,,lk,ha,ha')])
    self.assertEqual(self._parseFeature('CHANMODES', ',,,'), {'addressModes': '', 'param': '', 'setParam': '', 'noParam': ''})
    self.assertEqual(self._parseFeature('CHANMODES', ',A,,'), {'addressModes': '', 'param': 'A', 'setParam': '', 'noParam': ''})
    self.assertEqual(self._parseFeature('CHANMODES', 'A,Bc,Def,Ghij'), {'addressModes': 'A', 'param': 'Bc', 'setParam': 'Def', 'noParam': 'Ghij'})
