@record
    def test_message_bytes_fails(self):
        # Arrange
        queue_name = self._get_queue_reference()

        # Action.
        try:
            message = b'xyz'
            self.qs.put_message(queue_name, message)
            self.fail('Passing binary to text encoder should fail.')
        except __HOLE__ as e:
            self.assertTrue(str(e).startswith('message should be of type'))

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