'Sending a message that is empty or only whitespace should fail'

def test_empty_message(self):

    self.login(self.example_email('hamlet'))
    result = self.client_post('/json/messages', {'type': 'private', 'content': '    ', 'client': 'test    suite', 'to': self.example_email('othello')})
    self.assert_json_error(result, 'Message    must    not    be    empty')
