]> git.ozlabs.org Git - patchwork/blobdiff - apps/patchwork/tests/patchparser.py
tests/patchparser: Add CVS format patch test
[patchwork] / apps / patchwork / tests / patchparser.py
index 296da5ffe8147c53388d25bc177ced80b19a68f2..3870dc88bb2f29728b5f684913b4473ad0e27024 100644 (file)
@@ -385,3 +385,11 @@ class GitPullSSHUrlTest(GitPullTest):
 class GitPullHTTPUrlTest(GitPullTest):
     mail_file = '0006-git-pull-request-http.mbox'
 
+class CVSFormatPatchTest(MBoxPatchTest):
+    mail_file = '0007-cvs-format-diff.mbox'
+
+    def testPatch(self):
+        (patch, comment) = find_content(self.project, self.mail)
+        self.assertTrue(patch is not None)
+        self.assertTrue(comment is not None)
+        self.assertTrue(patch.content.startswith('Index'))