@record
    def test_message_base64_decode_fails(self):
        # Arrange
        qs2 = self._create_storage_service(QueueService, self.settings)
        qs2.encode_function = QueueMessageFormat.text_xmlencode
        qs2.decode_function = QueueMessageFormat.binary_base64decode

        queue_name = self._create_queue()
        message = u'xyz'
        qs2.put_message(queue_name, message)

        # Action.
        try:
            qs2.get_messages(queue_name)
            self.fail('Decoding unicode string as base64 should fail.')
        except __HOLE__ as e:
            self.assertEqual(str(e), 'message is not a valid base64 value.')

        # Asserts

#------------------------------------------------------------------------------
dataset/ETHPy150Open Azure/azure-storage-python/tests/test_queue_encodings.py/StorageQueueEncodingTest.test_message_base64_decode_fails