'Sending a message longer than the maximum message length succeeds but is
truncated.'

def test_strip_message(self):

    self.login(self.example_email('hamlet'))
    post_data = {'type': 'stream', 'to': 'Verona', 'client': 'test    suite', 'content': '        I    like    whitespace    at    the    end!    \n\n    \n', 'subject': 'Test    subject'}
    result = self.client_post('/json/messages', post_data)
    self.assert_json_success(result)
    sent_message = self.get_last_message()
    self.assertEqual(sent_message.content, '        I    like    whitespace    at    the    end!')
