diff options
author | Jeremy Kerr <jk@ozlabs.org> | 2008-09-20 10:11:38 +1000 |
---|---|---|
committer | Jeremy Kerr <jk@ozlabs.org> | 2008-09-20 10:11:38 +1000 |
commit | 26c532d2cfeec0bd4339b5c1db4bb2b3d4a3d3f0 (patch) | |
tree | 458c8aa831aeecaab3d443154cc8cde3eb49accf /apps | |
parent | b537242352ca645916c807ea71a3094758d6b9d8 (diff) | |
download | patchwork-26c532d2cfeec0bd4339b5c1db4bb2b3d4a3d3f0.tar.bz2 patchwork-26c532d2cfeec0bd4339b5c1db4bb2b3d4a3d3f0.tar.xz |
[test] Add test for signatures in comments
Signed-off-by: Jeremy Kerr <jk@ozlabs.org>
Diffstat (limited to 'apps')
-rw-r--r-- | apps/patchwork/tests/patchparser.py | 13 |
1 files changed, 13 insertions, 0 deletions
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) + |