# Create a dummy middleware class for testing, that simply removes the SSL argument
# and does nothing else.
if settings.TESTING:
    class SSLRedirect:
        def process_view(self, request, view_func, view_args, view_kwargs):
            if SSL in view_kwargs:
                del view_kwargs[SSL]