'When a UTF8 message is sent with sendMessage and the current IRCUser
has a UTF8 nick and is set to UTF8 encoding, the message will be
written to the transport.'

def test_utf8Messages(self):

    expectedResult = u':example.com    \u0442\u0435\u0441\u0442    \u043d\u0438\u043a\r\n'.encode('utf-8')
    self.ircUser.irc_NICK('', [u'\u043d\u0438\u043a'.encode('utf-8')])
    self.stringTransport.clear()
    self.ircUser.sendMessage(u'\u0442\u0435\u0441\u0442'.encode('utf-8'))
    self.assertEqualBufferValue(self.stringTransport.value(), expectedResult)
