summaryrefslogtreecommitdiff
path: root/tests/logging_tests/tests.py
diff options
context:
space:
mode:
authorTim Graham <timograham@gmail.com>2013-10-19 08:31:38 -0400
committerTim Graham <timograham@gmail.com>2013-10-19 08:31:38 -0400
commit96d1d4e29275f4f5900f0725975d2ad0a4d05816 (patch)
tree17b846e3b77f68fbb3b1dc7a2ff413f574c62ce1 /tests/logging_tests/tests.py
parent5f52590368063fc8284e23be492d83ba751f66bf (diff)
Removed unused local variables in tests.
Diffstat (limited to 'tests/logging_tests/tests.py')
-rw-r--r--tests/logging_tests/tests.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/logging_tests/tests.py b/tests/logging_tests/tests.py
index 6007a4f376..b198e9641a 100644
--- a/tests/logging_tests/tests.py
+++ b/tests/logging_tests/tests.py
@@ -362,12 +362,12 @@ class SecurityLoggerTest(TestCase):
def test_suspicious_operation_creates_log_message(self):
with patch_logger('django.security.SuspiciousOperation', 'error') as calls:
- response = self.client.get('/suspicious/')
+ self.client.get('/suspicious/')
self.assertEqual(len(calls), 1)
self.assertEqual(calls[0], 'dubious')
def test_suspicious_operation_uses_sublogger(self):
with patch_logger('django.security.DisallowedHost', 'error') as calls:
- response = self.client.get('/suspicious_spec/')
+ self.client.get('/suspicious_spec/')
self.assertEqual(len(calls), 1)
self.assertEqual(calls[0], 'dubious')