def METHOD_NAME(self):
    folder_path = self.folder
    share_dir_to_group(self.repo, folder_path, self.user.username,
                       self.user.username, self.group.id, 'rw', None)
    notice = UserNotification.objects.add_repo_share_to_group_msg(
        self.user.username,
        repo_share_to_group_msg_to_json('bar@bar.com', self.repo.id, self.group.id, folder_path, None))
    msg = notice.format_repo_share_to_group_msg()
    assert msg is not None
    assert 'bar has shared a folder named' in msg