summaryrefslogtreecommitdiff
path: root/tests/httpwrappers
diff options
context:
space:
mode:
authorRamin Farajpour Cami <ramin.blackhat@gmail.com>2016-11-15 02:10:28 +0330
committerTim Graham <timograham@gmail.com>2016-11-14 17:40:28 -0500
commit0a63ef3f61f42c5fd22f2d0b626e386fd426ebed (patch)
tree4529b5f5c23db4062a5195f961e4ae468120741e /tests/httpwrappers
parentc7bfcd2f377ad5803e25ee547dee9cf58ee68ab2 (diff)
downloaddjango-0a63ef3f61f42c5fd22f2d0b626e386fd426ebed.tar.gz
Fixed #27463 -- Fixed E741 flake8 warnings.
Diffstat (limited to 'tests/httpwrappers')
-rw-r--r--tests/httpwrappers/tests.py16
1 files changed, 8 insertions, 8 deletions
diff --git a/tests/httpwrappers/tests.py b/tests/httpwrappers/tests.py
index cde5ca65d2..2cf0e23d63 100644
--- a/tests/httpwrappers/tests.py
+++ b/tests/httpwrappers/tests.py
@@ -347,18 +347,18 @@ class HttpResponseTests(unittest.TestCase):
r = HttpResponse()
del r['Content-Type']
r['foo'] = 'bar'
- l = list(r.items())
- self.assertEqual(len(l), 1)
- self.assertEqual(l[0], ('foo', 'bar'))
- self.assertIsInstance(l[0][0], str)
+ headers = list(r.items())
+ self.assertEqual(len(headers), 1)
+ self.assertEqual(headers[0], ('foo', 'bar'))
+ self.assertIsInstance(headers[0][0], str)
r = HttpResponse()
del r['Content-Type']
r[b'foo'] = 'bar'
- l = list(r.items())
- self.assertEqual(len(l), 1)
- self.assertEqual(l[0], ('foo', 'bar'))
- self.assertIsInstance(l[0][0], str)
+ headers = list(r.items())
+ self.assertEqual(len(headers), 1)
+ self.assertEqual(headers[0], ('foo', 'bar'))
+ self.assertIsInstance(headers[0][0], str)
r = HttpResponse()
with self.assertRaises(UnicodeError):