'Test that force_bytes knows how to convert to bytes an exception
containing non-ASCII characters in its args.'

def test_force_bytes_exception(self):

    error_msg = u'This    is    an    exception,    voil\xe0'
    exc = ValueError(error_msg)
    result = force_bytes(exc)
    self.assertEqual(result, error_msg.encode(u'utf-8'))
