~launchpad-pqm/launchpad/devel

« back to all changes in this revision

Viewing changes to lib/lp/coop/answersbugs/tests/test_doc.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:
49
49
    ubuntu_team = getUtility(IPersonSet).getByName('ubuntu-team')
50
50
    ubuntu_team.addLanguage(getUtility(ILanguageSet)['en'])
51
51
    ubuntu = getUtility(IDistributionSet).getByName('ubuntu')
52
 
    ubuntu.addAnswerContact(ubuntu_team)
 
52
    ubuntu.addAnswerContact(ubuntu_team, ubuntu_team.teamowner)
53
53
    ubuntu_question = ubuntu.newQuestion(
54
54
        sample_person, "Can't install Ubuntu",
55
55
        "I insert the install CD in the CD-ROM drive, but it won't boot.")
62
62
    [ubuntu_bugtask] = bug.bugtasks
63
63
    login(ANONYMOUS)
64
64
    # Remove the notifcations for the newly created question.
65
 
    notifications = pop_notifications()
 
65
    pop_notifications()
66
66
    return ubuntu_bugtask.id
67
67
 
68
68