'Test for auto-encoding of unicode text'

@record
def test_send_queue_message_unicode(self):

    data = u'receive    message\u554a\u9f44\u4e02\u72db\u72dc'
    sent_msg = Message(data)
    self._create_queue(self.queue_name)
    self.sbs.send_queue_message(self.queue_name, sent_msg)
    received_msg = self.sbs.receive_queue_message(self.queue_name, False)
    self.assertIsNotNone(received_msg)
    self.assertEqual(received_msg.body, data.encode('utf-8'))
