title: Django unittest's: How to set up temporary view with temporary url conf for unittest's
body: <p>I created a couple Middleware classes and want to test them against some real views now. Since my app is not including any views or url conf itself I was wondering if there is a way to temporary create views and url configuration just for testing (similar to a test database) within Django's test framework. In the end I would like to use the test client to check these temporary views against errors coming from the Middleware. I didn't find some solution for this in the docs.</p>
  
  <p>I know I could create a test view within my app (in views.py) and point from the projects ROOT_URLCONF to it, but I don't want to force a user to do this when using my app and wanting to test my Middleware classes. </p>
  
  <p>Any ideas?</p>
  
  <p>Thanks.</p>