divio/django-cms — pull request #1360 by piquadrat (2012-07-25 08:22:00+00:00)
Title: test leak fixes

this fixes all the test leaks that are currently appearing

``WSGIRequest`` has no attribute ``current_page``
------------------------------------------------------------------------

This can be solved by setting the ``current_page`` attribute on the fake request

``NonRootCase`` URL reversal
--------------------------------------------

as @yakky pointed out in #1335, it seems to be necessary to call ``client.get()`` or ``client.post()`` before doing URL-reversal. While I'm not 100% sure why this is necessary, I guess that django only sets up the whole URL-reversal infrastructure when the client is used the first time.