971334eb38561d4721788e7d1b0fb9d7cab3bbf7,tests/tests.py,DebugToolbarTestCase,test_show_toolbar_DEBUG,#DebugToolbarTestCase#,62

Before Change


        self.assertEquals(resp.status_code, 200)

    def test_show_toolbar_DEBUG(self):
        request = self.request

        request.META = {"REMOTE_ADDR": "127.0.0.1"}
        middleware = DebugToolbarMiddleware()

        with Settings(INTERNAL_IPS=["127.0.0.1"], DEBUG=True):
            self.assertTrue(middleware._show_toolbar(request))

After Change


        self.assertEquals(resp.status_code, 200)

    def test_show_toolbar_DEBUG(self):
        request = rf.get("/")
        middleware = DebugToolbarMiddleware()

        with Settings(INTERNAL_IPS=["127.0.0.1"], DEBUG=True):
            self.assertTrue(middleware._show_toolbar(request))
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 6

Non-data size: 8

Instances


Project Name: jazzband/django-debug-toolbar
Commit Name: 971334eb38561d4721788e7d1b0fb9d7cab3bbf7
Time: 2012-05-13
Author: jannis@leidel.info
File Name: tests/tests.py
Class Name: DebugToolbarTestCase
Method Name: test_show_toolbar_DEBUG


Project Name: jazzband/django-debug-toolbar
Commit Name: 971334eb38561d4721788e7d1b0fb9d7cab3bbf7
Time: 2012-05-13
Author: jannis@leidel.info
File Name: tests/tests.py
Class Name: DebugToolbarTestCase
Method Name: test_show_toolbar_TEST


Project Name: jazzband/django-debug-toolbar
Commit Name: 971334eb38561d4721788e7d1b0fb9d7cab3bbf7
Time: 2012-05-13
Author: jannis@leidel.info
File Name: tests/tests.py
Class Name: DebugToolbarTestCase
Method Name: test_request_urlconf_module


Project Name: jazzband/django-debug-toolbar
Commit Name: 971334eb38561d4721788e7d1b0fb9d7cab3bbf7
Time: 2012-05-13
Author: jannis@leidel.info
File Name: tests/tests.py
Class Name: DebugToolbarTestCase
Method Name: test_tuple_urlconf


Project Name: jazzband/django-debug-toolbar
Commit Name: 971334eb38561d4721788e7d1b0fb9d7cab3bbf7
Time: 2012-05-13
Author: jannis@leidel.info
File Name: tests/tests.py
Class Name: DebugToolbarTestCase
Method Name: test_request_urlconf_string


Project Name: jazzband/django-debug-toolbar
Commit Name: 971334eb38561d4721788e7d1b0fb9d7cab3bbf7
Time: 2012-05-13
Author: jannis@leidel.info
File Name: tests/tests.py
Class Name: DebugToolbarTestCase
Method Name: test_request_urlconf_string_per_request