From 26c532d2cfeec0bd4339b5c1db4bb2b3d4a3d3f0 Mon Sep 17 00:00:00 2001 From: Jeremy Kerr Date: Sat, 20 Sep 2008 10:11:38 +1000 Subject: [test] Add test for signatures in comments Signed-off-by: Jeremy Kerr --- apps/patchwork/tests/patchparser.py | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'apps') 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) + -- cgit v1.2.3