X-Git-Url: http://git.ozlabs.org/?a=blobdiff_plain;f=apps%2Fpatchwork%2Ftests%2Fpatchparser.py;fp=apps%2Fpatchwork%2Ftests%2Fpatchparser.py;h=953b94cfca8f23701541d8f46a85de29bd99e4a0;hb=e1a8a7db780c8250cfe36aa374d6f633653b6a08;hp=1135a0a57b9f9b795d2d882b76e5bdb89cf5cae6;hpb=d9ab2f6b49b035a724fbeaea4c38f19d4ecc5996;p=patchwork diff --git a/apps/patchwork/tests/patchparser.py b/apps/patchwork/tests/patchparser.py index 1135a0a..953b94c 100644 --- a/apps/patchwork/tests/patchparser.py +++ b/apps/patchwork/tests/patchparser.py @@ -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'