'Same as above, but for the API view'

def test_api_message_to_self(self):

    email = self.example_email('hamlet')
    result = self.client_post('/api/v1/messages', {'type': 'stream', 'to': 'Verona', 'client': 'test    suite', 'content': 'Test    message', 'subject': 'Test    subject'}, **self.api_auth(email))
    self.assert_json_success(result)
