~launchpad-pqm/launchpad/devel

« back to all changes in this revision

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

  • Committer: Curtis Hovey
  • Date: 2011-04-29 17:46:12 UTC
  • mto: This revision was merged to the branch mainline in revision 12976.
  • Revision ID: curtis.hovey@canonical.com-20110429174612-n39hrsoleimarw2j
Remove obsolete email methods.

Show diffs side-by-side

added added

removed removed

Lines of Context:
83
83
            QuestionRecipientSet.SUBSCRIBER,
84
84
            self.notification.recipient_set)
85
85
 
86
 
    def test_buildBody_with_separator(self):
87
 
        # A body with a separator is preserved.
88
 
        formatted_body = self.notification.buildBody(
89
 
            "body\n-- ", "rationale")
90
 
        self.assertEqual(
91
 
            "body\n-- \nrationale", formatted_body)
92
 
 
93
 
    def test_buildBody_without_separator(self):
94
 
        # A separator will added to body if one is not present.
95
 
        formatted_body = self.notification.buildBody(
96
 
            "body -- mdash", "rationale")
97
 
        self.assertEqual(
98
 
            "body -- mdash\n-- \nrationale", formatted_body)
99
 
 
100
86
    def test_getSubject(self):
101
87
        """getSubject() when there is no message added to the question."""
102
88
        self.assertEquals(