]> git.ozlabs.org Git - patchwork/blobdiff - apps/patchwork/tests/patchparser.py
tests/parser: Add test for wrapped git pull requests
[patchwork] / apps / patchwork / tests / patchparser.py
index 1135a0a57b9f9b795d2d882b76e5bdb89cf5cae6..953b94cfca8f23701541d8f46a85de29bd99e4a0 100644 (file)
@@ -348,11 +348,15 @@ class ListIdHeaderTest(unittest.TestCase):
 
 
 class GitPullTest(PatchTest):
+    mail_file = '0001-git-pull-request.mbox'
+
     def testGitPullRequest(self):
-        mail = read_mail('0001-git-pull-request.mbox',
-                        project = self.project)
+        mail = read_mail(self.mail_file, project = self.project)
         (patch, comment) = find_content(self.project, mail)
         self.assertTrue(patch is not None)
         self.assertTrue(patch.pull_url is not None)
         self.assertTrue(patch.content is None)
         self.assertTrue(comment is not None)
+
+class GitPullWrappedTest(GitPullTest):
+    mail_file = '0002-git-pull-request-wrapped.mbox'