Fixed #14664 -- Logged a warning if MiddlewareNotUsed is raised in DEBUG...

... mode.

https://code.djangoproject.com/ticket/14664
Use RequestFactory? (the existing tests probably pre-date it)