~launchpad-pqm/launchpad/devel

« back to all changes in this revision

Viewing changes to lib/lp/testing/factory.py

[r=wallyworld][bug=816261] Move bugs subscriptions_list to apps and
        add IQuestion.canBeUnsubscribedBy

Show diffs side-by-side

added added

removed removed

Lines of Context:
2073
2073
                owner=owner, title=title, description=description)
2074
2074
        return question
2075
2075
 
 
2076
    def makeQuestionSubscription(self, question=None, person=None):
 
2077
        """Create a QuestionSubscription."""
 
2078
        if question is None:
 
2079
            question = self.makeQuestion()
 
2080
        if person is None:
 
2081
            person = self.makePerson()
 
2082
        with person_logged_in(person):
 
2083
            return question.subscribe(person)
 
2084
 
2076
2085
    def makeFAQ(self, target=None, title=None):
2077
2086
        """Create and return a new, arbitrary FAQ.
2078
2087