'Newly created users are auto-subbed to the ability to receive
personals.'

def test_auto_subbed_to_personals(self):

    test_email = self.nonreg_email('test')
    self.register(test_email, 'test')
    user_profile = self.nonreg_user('test')
    old_messages_count = message_stream_count(user_profile)
    self.send_message(test_email, test_email, Recipient.PERSONAL)
    new_messages_count = message_stream_count(user_profile)
    self.assertEqual(new_messages_count, (old_messages_count + 1))
    recipient = Recipient.objects.get(type_id=user_profile.id, type=Recipient.PERSONAL)
    message = most_recent_message(user_profile)
    self.assertEqual(message.recipient, recipient)
    with mock.patch('zerver.models.get_display_recipient', return_value='recip'):
        self.assertEqual(str(message), u'<Message:    recip    /        /    <UserProfile:    test@zulip.com    <Realm:    zulip    1>>>')
        user_message = most_recent_usermessage(user_profile)
        self.assertEqual(str(user_message), u'<UserMessage:    recip    /    test@zulip.com    ([])>')
