diff options
author | Ramin Farajpour Cami <ramin.blackhat@gmail.com> | 2016-11-15 02:10:28 +0330 |
---|---|---|
committer | Tim Graham <timograham@gmail.com> | 2016-11-14 17:40:28 -0500 |
commit | 0a63ef3f61f42c5fd22f2d0b626e386fd426ebed (patch) | |
tree | 4529b5f5c23db4062a5195f961e4ae468120741e /tests/httpwrappers | |
parent | c7bfcd2f377ad5803e25ee547dee9cf58ee68ab2 (diff) | |
download | django-0a63ef3f61f42c5fd22f2d0b626e386fd426ebed.tar.gz |
Fixed #27463 -- Fixed E741 flake8 warnings.
Diffstat (limited to 'tests/httpwrappers')
-rw-r--r-- | tests/httpwrappers/tests.py | 16 |
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): |