From: Brian Warner Date: Sun, 13 May 2012 07:42:24 +0000 (-0700) Subject: test_web: fix use of headers= that's been wrong for a while X-Git-Url: https://git.rkrishnan.org/?a=commitdiff_plain;h=8f630a76fe009394e4666ac8761cbcbe04aa6a29;p=tahoe-lafs%2Ftahoe-lafs.git test_web: fix use of headers= that's been wrong for a while --- diff --git a/src/allmydata/test/test_web.py b/src/allmydata/test/test_web.py index 1b150828..841bedc1 100644 --- a/src/allmydata/test/test_web.py +++ b/src/allmydata/test/test_web.py @@ -5331,7 +5331,7 @@ class Grid(GridTestMixin, WebErrorMixin, ShouldFailMixin, testutil.ReallyEqualMi self.shouldHTTPError("GET errorboom_html", 500, "Internal Server Error", None, self.GET, "ERRORBOOM", - headers={"accept": ["*/*"]})) + headers={"accept": "*/*"})) def _internal_error_html1(body): self.failUnlessIn("", "expected HTML, not '%s'" % body) d.addCallback(_internal_error_html1) @@ -5340,7 +5340,7 @@ class Grid(GridTestMixin, WebErrorMixin, ShouldFailMixin, testutil.ReallyEqualMi self.shouldHTTPError("GET errorboom_text", 500, "Internal Server Error", None, self.GET, "ERRORBOOM", - headers={"accept": ["text/plain"]})) + headers={"accept": "text/plain"})) def _internal_error_text2(body): self.failIfIn("", body) self.failUnless(body.startswith("Traceback "), body) @@ -5351,7 +5351,7 @@ class Grid(GridTestMixin, WebErrorMixin, ShouldFailMixin, testutil.ReallyEqualMi self.shouldHTTPError("GET errorboom_text", 500, "Internal Server Error", None, self.GET, "ERRORBOOM", - headers={"accept": [CLI_accepts]})) + headers={"accept": CLI_accepts})) def _internal_error_text3(body): self.failIfIn("", body) self.failUnless(body.startswith("Traceback "), body)