'L{log.LogPublisher.msg} does not accept non-ASCII Unicode on Python 2,
logging an error instead.
On Python 3, where Unicode is default message type, the message is
logged normally.'

def test_singleUnicode(self):

    message = u'Hello,    \xbd    world.'
    self.lp.msg(message)
    self.assertEqual(len(self.out), 1)
    if _PY3:
        self.assertIn(message, self.out[0])
    else:
        self.assertIn('with    str    error', self.out[0])
        self.assertIn('UnicodeEncodeError', self.out[0])
