~launchpad-pqm/launchpad/devel

« back to all changes in this revision

Viewing changes to lib/lp/answers/tests/test_faq.py

  • Committer: Launchpad Patch Queue Manager
  • Date: 2011-05-09 22:53:33 UTC
  • mfrom: (12959.4.23 anwers-api-0)
  • Revision ID: launchpad@pqm.canonical.com-20110509225333-lu5q3l2zce8erpbx
[r=benji][bug=780078] Export answer contact management over the API.

Show diffs side-by-side

added added

removed removed

Lines of Context:
33
33
        """Add the test person to the faq target's answer contacts."""
34
34
        language_set = getUtility(ILanguageSet)
35
35
        answer_contact.addLanguage(language_set['en'])
36
 
        self.faq.target.addAnswerContact(answer_contact)
 
36
        self.faq.target.addAnswerContact(answer_contact, answer_contact)
37
37
 
38
38
    def assertCanEdit(self, user, faq):
39
39
        """Assert that the user can edit an FAQ."""