1
0
mirror of https://github.com/django/django.git synced 2024-11-18 23:44:22 +00:00
django/tests/logging_tests/views.py
2015-02-06 08:16:28 -05:00

12 lines
248 B
Python

from __future__ import unicode_literals
from django.core.exceptions import DisallowedHost, SuspiciousOperation
def suspicious(request):
raise SuspiciousOperation('dubious')
def suspicious_spec(request):
raise DisallowedHost('dubious')