'CTCP ACTION to a user or channel.'

def test_action(self):

    self.proto.makeConnection(self.transport)
    self.proto.dataReceived(':alice1    PRIVMSG    alice1    :\x01ACTION    smiles\x01\r\n')
    conversation = self.proto.chat.getConversation(self.proto.getPerson('alice1'))
    self.assertEqual(conversation.message, 'smiles')
    self.proto.dataReceived(':alice1    PRIVMSG    #group1    :\x01ACTION    laughs\x01\r\n')
    groupConversation = self.proto.getGroupConversation('group1')
    self.assertEqual(groupConversation.text, 'laughs')
    self.proto.setNick('alice')
    self.proto.dataReceived(':alice    PRIVMSG    #group1    :\x01ACTION    cries\x01\r\n')
    groupConversation = self.proto.getGroupConversation('foo')
    self.assertFalse(hasattr(groupConversation, 'text'))
    conversation = self.proto.chat.getConversation(self.proto.getPerson('alice'))
    self.assertFalse(hasattr(conversation, 'message'))
