From: Andrew Donnellan Date: Fri, 18 Oct 2019 03:41:16 +0000 (+1100) Subject: tests: Rename inaccurately named test_patchwork_from_header X-Git-Tag: v2.2.0-rc1~49 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=19512edf788af058775c43d5727713441a038f64;p=thirdparty%2Fpatchwork.git tests: Rename inaccurately named test_patchwork_from_header The test_patchwork_from_header test claims to test for the presence of the X-Patchwork-From header, when we actually call it X-Patchwork-Submitter. Fix it. Signed-off-by: Andrew Donnellan [dja: fix commit message] Signed-off-by: Daniel Axtens --- diff --git a/patchwork/tests/test_mboxviews.py b/patchwork/tests/test_mboxviews.py index 8f67778d..1e7bfb01 100644 --- a/patchwork/tests/test_mboxviews.py +++ b/patchwork/tests/test_mboxviews.py @@ -153,8 +153,8 @@ class MboxHeaderTest(TestCase): patch.url_msgid])) self.assertContains(response, 'X-Patchwork-Delegate: %s' % user.email) - def test_patchwork_from_header(self): - """Validate inclusion of generated 'X-Patchwork-From' header.""" + def test_patchwork_submitter_header(self): + """Validate inclusion of generated 'X-Patchwork-Submitter' header.""" email = 'jon@doe.com' from_header = 'From: Jon Doe <%s>\n' % email