'Passing a tag name containing spaces to L{IRC.sendCommand} raises a
C{ValueError}.'

def test_sendCommandValidateTagsWithSpaces(self):

    sendTags = {u'aaa    bbb': u'ccc'}
    error = self.assertRaises(ValueError, self.p.sendCommand, u'CMD', (u'param1', u'param2'), u'irc.example.com', sendTags)
    self.assertEqual(error.args[0], 'Tag    contains    invalid    characters.')
