From: Jeremy Kerr Date: Sat, 20 Sep 2008 00:11:38 +0000 (+1000) Subject: [test] Add test for signatures in comments X-Git-Url: https://git.ozlabs.org/?p=patchwork;a=commitdiff_plain;h=26c532d2cfeec0bd4339b5c1db4bb2b3d4a3d3f0 [test] Add test for signatures in comments Signed-off-by: Jeremy Kerr --- diff --git a/apps/patchwork/tests/patchparser.py b/apps/patchwork/tests/patchparser.py index 19b7aea..3b10ef5 100644 --- a/apps/patchwork/tests/patchparser.py +++ b/apps/patchwork/tests/patchparser.py @@ -89,3 +89,16 @@ class AttachmentPatchTest(InlinePatchTest): attachment = MIMEText(self.orig_patch, _subtype = 'x-patch') email.attach(attachment) (self.patch, self.comment) = find_content(self.project, email) + + +class SignatureCommentTest(InlinePatchTest): + patch_filename = '0001-add-line.patch' + test_comment = 'Test comment\nmore comment' + + def setUp(self): + self.orig_patch = self.read_patch(self.patch_filename) + email = self.create_email( \ + self.test_comment + '\n' + \ + '-- \nsig\n' + self.orig_patch) + (self.patch, self.comment) = find_content(self.project, email) +