Part of lp.answers.tests.test_question_notifications View In Hierarchy
Since notifications are handlers that accomplish their action on initialization, override the relevant method to make them easier to test.
| Method | initialize | Leave the fixture to initialize the notification properly. |
| Method | shouldNotify | Do not send emails! |
Inherited from QuestionModifiedDefaultNotification:
| Method | metadata_changes_text | Textual representation of the changes to the question metadata. |
| Method | getSubject | The reply subject line. |
| Method | getHeaders | Add a References header. |
| Method | getBody | See QuestionNotification. |
| Method | getNewMessageText | Should return the notification text related to a new message. |
Inherited from QuestionNotification (via QuestionModifiedDefaultNotification):
| Method | __init__ | Base constructor. |
| Method | user | Return the user from the event. |
| Method | enqueue | Create a job to send email about the event. |
| Method | unsupported_language | Whether the question language is unsupported or not. |
| Method | unsupported_language_warning | Warning about the fact that the question is written in an |