See https://docs.djangoproject.com/en/1.6/topics/testing/overview/#urlconf-configuration. The new urls.py is loaded after settings.INSTALLED_PLUGINS was overridden. In this urls.py I use the reload method to reload OpenSlides' urls.py. Now the plugin's urlpatterns were inserted. This is necessary for the test_url_patterns test.