~launchpad-pqm/launchpad/devel

« back to all changes in this revision

Viewing changes to lib/lp/code/model/tests/test_codereviewcomment.py

  • Committer: Aaron Bentley
  • Date: 2009-07-23 17:47:50 UTC
  • mto: This revision was merged to the branch mainline in revision 8975.
  • Revision ID: aaron@canonical.com-20090723174750-uve4mfgtwl3f8h51
Ensure no codereviewcomment is created if subject missing.

Show diffs side-by-side

added added

removed removed

Lines of Context:
96
96
    def test_createCommentFromMessage(self):
97
97
        """Creating a CodeReviewComment from a message works."""
98
98
        message = self.factory.makeMessage(owner=self.submitter)
99
 
        comment = self.bmp.createCommentFromMessage(message, None, None)
 
99
        comment = self.bmp.createCommentFromMessage(
 
100
            message, None, None, original_email=None, _validate=False)
100
101
        self.assertEqual(message, comment.message)
101
102
 
102
103
    def test_createCommentFromMessageNotifies(self):
104
105
        message = self.factory.makeMessage()
105
106
        self.assertNotifies(
106
107
            NewCodeReviewCommentEvent, self.bmp.createCommentFromMessage,
107
 
            message, None, None)
 
108
            message, None, None, original_email=None, _validate=False)
108
109
 
109
110
 
110
111
class TestCodeReviewCommentGetAttachments(TestCaseWithFactory):