summaryrefslogtreecommitdiff
path: root/tests/httpwrappers/tests.py
diff options
context:
space:
mode:
authorcoagulant <baryshev@gmail.com>2013-11-03 01:02:56 +0400
committerJason Myers <jason@jasonamyers.com>2013-11-02 23:50:33 -0500
commit8eec2d93b6e93b8a1107fb3de2acd68d6994d6ec (patch)
treedee448f4b73c925b10871f4fbe7d601f5feb576b /tests/httpwrappers/tests.py
parentc3791463a5a9674f8e0148fbab57eae23c138896 (diff)
Fixed all E261 warnings
Diffstat (limited to 'tests/httpwrappers/tests.py')
-rw-r--r--tests/httpwrappers/tests.py14
1 files changed, 7 insertions, 7 deletions
diff --git a/tests/httpwrappers/tests.py b/tests/httpwrappers/tests.py
index 1e099d2bb4..820aecf1f7 100644
--- a/tests/httpwrappers/tests.py
+++ b/tests/httpwrappers/tests.py
@@ -315,11 +315,11 @@ class HttpResponseTests(unittest.TestCase):
self.assertEqual(r.get('test'), None)
def test_non_string_content(self):
- #Bug 16494: HttpResponse should behave consistently with non-strings
+ # Bug 16494: HttpResponse should behave consistently with non-strings
r = HttpResponse(12345)
self.assertEqual(r.content, b'12345')
- #test content via property
+ # test content via property
r = HttpResponse()
r.content = 12345
self.assertEqual(r.content, b'12345')
@@ -328,7 +328,7 @@ class HttpResponseTests(unittest.TestCase):
r = HttpResponse(['abc', 'def', 'ghi'])
self.assertEqual(r.content, b'abcdefghi')
- #test iter content via property
+ # test iter content via property
r = HttpResponse()
r.content = ['idan', 'alex', 'jacob']
self.assertEqual(r.content, b'idanalexjacob')
@@ -337,13 +337,13 @@ class HttpResponseTests(unittest.TestCase):
r.content = [1, 2, 3]
self.assertEqual(r.content, b'123')
- #test odd inputs
+ # test odd inputs
r = HttpResponse()
r.content = ['1', '2', 3, '\u079e']
#'\xde\x9e' == unichr(1950).encode('utf-8')
self.assertEqual(r.content, b'123\xde\x9e')
- #with Content-Encoding header
+ # with Content-Encoding header
r = HttpResponse()
r['Content-Encoding'] = 'winning'
r.content = [b'abc', b'def']
@@ -573,8 +573,8 @@ class CookieTests(unittest.TestCase):
"""
c = SimpleCookie()
c['test'] = "An,awkward;value"
- self.assertTrue(";" not in c.output().rstrip(';')) # IE compat
- self.assertTrue("," not in c.output().rstrip(';')) # Safari compat
+ self.assertTrue(";" not in c.output().rstrip(';')) # IE compat
+ self.assertTrue("," not in c.output().rstrip(';')) # Safari compat
def test_decode(self):
"""