1
0
mirror of https://github.com/django/django.git synced 2025-11-07 07:15:35 +00:00

Fixed #28893 -- Removed unnecessary dict.items() calls.

This commit is contained in:
Tim Graham
2017-12-06 17:17:59 -05:00
committed by GitHub
parent 183fb7b2b9
commit a862af3839
14 changed files with 25 additions and 25 deletions

View File

@@ -769,7 +769,7 @@ class ExceptionReportTestMixin:
self.assertContains(response, 'sauce', status_code=500)
self.assertNotContains(response, 'worcestershire', status_code=500)
if check_for_POST_params:
for k, v in self.breakfast_data.items():
for k in self.breakfast_data:
# All POST parameters' names are shown.
self.assertContains(response, k, status_code=500)
# Non-sensitive POST parameters' values are shown.
@@ -858,7 +858,7 @@ class ExceptionReportTestMixin:
self.assertNotIn('worcestershire', body_html)
if check_for_POST_params:
for k, v in self.breakfast_data.items():
for k in self.breakfast_data:
# All POST parameters' names are shown.
self.assertIn(k, body_plain)
# Non-sensitive POST parameters' values are shown.