def test_send_to_content_too_long(self):
        self.conversation.config['http_api'].update({
            'content_length_limit': 10,
        })
        yield self.conversation.save()

        msg = {
            'content': "This message is longer than 10 characters.",
            'to_addr': '+1234',
        }

        url = '%s/%s/messages.json' % (self.url, self.conversation.key)
        response = yield http_request_full(
            url, json.dumps(msg), self.auth_headers, method='PUT')
        self.assert_bad_request(
            response, "Payload content too long: 42 > 10")