2d3b5bab07cf441dbbf1710418d2d510089f0243,debug_toolbar/tests/tests.py,DebugToolbarTestCase,test_request_urlconf_string_per_request,#DebugToolbarTestCase#,102
Before Change
request.urlconf = "debug_toolbar.urls"
middleware.process_request(request)
urls = getattr(__import__(request.urlconf), request.urlconf.rsplit(".", 1)[-1])
self.assertEquals(urls.urlpatterns[0]._callback_str, "debug_toolbar.views.debug_media")
self.assertEquals(urls.urlpatterns[-1].urlconf_name.__name__, "debug_toolbar.urls")
After Change
request.urlconf = "debug_toolbar.urls"
middleware.process_request(request)
self.assertFalse(isinstance(request.urlconf, basestring))
self.assertTrue(hasattr(request.urlconf.urlpatterns[0], "_callback_str"))
self.assertEquals(request.urlconf.urlpatterns[0]._callback_str, "debug_toolbar.views.debug_media")
self.assertEquals(request.urlconf.urlpatterns[-1].urlconf_name.__name__, "debug_toolbar.urls")
In pattern: SUPERPATTERN
Frequency: 5
Non-data size: 3
Instances
Project Name: jazzband/django-debug-toolbar
Commit Name: 2d3b5bab07cf441dbbf1710418d2d510089f0243
Time: 2011-05-26
Author: dcramer@gmail.com
File Name: debug_toolbar/tests/tests.py
Class Name: DebugToolbarTestCase
Method Name: test_request_urlconf_string_per_request
Project Name: okfn-brasil/serenata-de-amor
Commit Name: 11560ffe49ecbeebd3e1989ce93410b37c316665
Time: 2017-05-28
Author: eu@caiocarrara.com.br
File Name: jarbas/api/tests/test_reimbursement_view.py
Class Name: TestRetrieveApi
Method Name: test_contents
Project Name: markovmodel/PyEMMA
Commit Name: a68a41b9182a6b9f112f659e893800631c13eb39
Time: 2017-12-17
Author: m.scherer@fu-berlin.de
File Name: pyemma/_base/serialization/serialization.py
Class Name: SerializableMixIn
Method Name: __getstate__
Project Name: jazzband/django-debug-toolbar
Commit Name: 2d3b5bab07cf441dbbf1710418d2d510089f0243
Time: 2011-05-26
Author: dcramer@gmail.com
File Name: debug_toolbar/tests/tests.py
Class Name: DebugToolbarTestCase
Method Name: test_request_urlconf_string
Project Name: pytorch/fairseq
Commit Name: 6d2cf0ddf64040543c346b3866eb636d14522dde
Time: 2020-11-18
Author: alexei.b@gmail.com
File Name: fairseq/optim/lr_scheduler/polynomial_decay_schedule.py
Class Name: PolynomialDecaySchedule
Method Name: __init__