'Sending a personal message to a deactivated user returns error JSON.'

def test_personal_message_to_deactivated_user(self):

    target_user_profile = self.example_user('othello')
    do_deactivate_user(target_user_profile)
    self.login(self.example_email('hamlet'))
    result = self.client_post('/json/messages', {'type': 'private', 'content': 'Test    message', 'client': 'test    suite', 'to': self.example_email('othello')})
    self.assert_json_error(result, "'othello@zulip.com'    is    no    longer    using    Zulip.")
    result = self.client_post('/json/messages', {'type': 'private', 'content': 'Test    message', 'client': 'test    suite', 'to': ujson.dumps([self.example_email('othello'), self.example_email('cordelia')])})
    self.assert_json_error(result, "'othello@zulip.com'    is    no    longer    using    Zulip.")
