hunk.code_window:         for post_id in set(self._ids) - voted_forum_ids:
               for post_id in self._ids:
                   Vote.create({'post_id': post_id, 'vote': new_vote})
           return {'vote_count': self.vote_count, 'user_vote': new_vote}
       @api.one
       def convert_answer_to_comment(self):
           """ Tools to convert an answer (forum.post) to a comment (mail.message).
           The original post is unlinked and a new comment is posted on the question
           using the post create_uid as the comment's author. """
  
hunk.labels: keep keep keep keep keep replace keep keep keep keep
hunk.after_edit:     @api.multi
  
hunk.file_path: addons/website_forum/models/forum.py
hunk.type: replace
file: # -*- coding: utf-8 -*-
  # Part of Odoo. See LICENSE file for full copyright and licensing details.
  
  from odoo.api import Environment
  import odoo.tests
  
  @odoo.tests.common.at_install(False)
  @odoo.tests.common.post_install(True)
  class TestWebsiteHrRecruitmentForm(odoo.tests.HttpCase):
      def test_tour(self):
          self.phantom_js("/", "odoo.__DEBUG__.services['web.Tour'].run('website_hr_recruitment_tour', 'test')", "odoo.__DEBUG__.services['web.Tour'].tours.website_hr_recruitment_tour")
  
          # get test cursor to read from same transaction browser is writing to
          cr = self.registry.cursor()
          assert cr == self.registry.test_cr
          env = Environment(cr, self.uid, {})
  
          record = env['hr.applicant'].search([('description', '=', '### HR RECRUITMENT TEST DATA ###')])
          assert len(record) == 1
          assert record.partner_name == "John Smith"
          assert record.email_from == "john@smith.com"
          assert record.partner_phone == '118.218'
  