'Reset Django urls before tests and after tests
If you need to reset `urls.py` from a particular Django app (or apps),
specify these modules by setting the URLCONF_MODULES class attribute.
Examples:
# Reload only the root urls.py
URLCONF_MODULES = None
# Reload urls from my_app
URLCONF_MODULES = [\'myapp.url\']
# Reload urls from my_app and another_app
URLCONF_MODULES = [\'myapp.url\', \'another_app.urls\']'

def setUp(self):

    super(UrlResetMixin, self).setUp()
    self.reset_urls()
    self.addCleanup(self.reset_urls)
