5299cf826284b6e082c5f18050e4f706faa81c39,tests/panels/test_sql.py,SQLPanelTestCase,test_non_ascii_query,#SQLPanelTestCase#,62
Before Change
list(User.objects.filter(username="café".encode("utf-8")))
self.assertEqual(len(self.panel._queries), 3)
self.panel.process_response(self.request, self.response)
self.panel.generate_stats(self.request, self.response)
// ensure the panel renders correctly
self.assertIn("café", self.panel.content)
After Change
list(User.objects.filter(username="café".encode("utf-8")))
self.assertEqual(len(self.panel._queries), 3)
response = self.panel.process_request(self.request)
self.panel.generate_stats(self.request, response)
// ensure the panel renders correctly
self.assertIn("café", self.panel.content)
In pattern: SUPERPATTERN
Frequency: 10
Non-data size: 5
Instances
Project Name: jazzband/django-debug-toolbar
Commit Name: 5299cf826284b6e082c5f18050e4f706faa81c39
Time: 2019-02-24
Author: jon.dufresne@gmail.com
File Name: tests/panels/test_sql.py
Class Name: SQLPanelTestCase
Method Name: test_non_ascii_query
Project Name: jazzband/django-debug-toolbar
Commit Name: 5299cf826284b6e082c5f18050e4f706faa81c39
Time: 2019-02-24
Author: jon.dufresne@gmail.com
File Name: tests/panels/test_sql.py
Class Name: SQLPanelTestCase
Method Name: test_insert_content
Project Name: jazzband/django-debug-toolbar
Commit Name: 5299cf826284b6e082c5f18050e4f706faa81c39
Time: 2019-02-24
Author: jon.dufresne@gmail.com
File Name: tests/panels/test_sql.py
Class Name: SQLPanelTestCase
Method Name: test_param_conversion
Project Name: jazzband/django-debug-toolbar
Commit Name: 5299cf826284b6e082c5f18050e4f706faa81c39
Time: 2019-02-24
Author: jon.dufresne@gmail.com
File Name: tests/panels/test_sql.py
Class Name: SQLPanelTestCase
Method Name: test_binary_param_force_text
Project Name: jazzband/django-debug-toolbar
Commit Name: 5299cf826284b6e082c5f18050e4f706faa81c39
Time: 2019-02-24
Author: jon.dufresne@gmail.com
File Name: tests/panels/test_sql.py
Class Name: SQLPanelTestCase
Method Name: test_raw_query_param_conversion
Project Name: jazzband/django-debug-toolbar
Commit Name: 5299cf826284b6e082c5f18050e4f706faa81c39
Time: 2019-02-24
Author: jon.dufresne@gmail.com
File Name: tests/panels/test_template.py
Class Name: TemplatesPanelTestCase
Method Name: test_insert_content
Project Name: jazzband/django-debug-toolbar
Commit Name: 5299cf826284b6e082c5f18050e4f706faa81c39
Time: 2019-02-24
Author: jon.dufresne@gmail.com
File Name: tests/panels/test_cache.py
Class Name: CachePanelTestCase
Method Name: test_insert_content
Project Name: jazzband/django-debug-toolbar
Commit Name: 5299cf826284b6e082c5f18050e4f706faa81c39
Time: 2019-02-24
Author: jon.dufresne@gmail.com
File Name: tests/panels/test_profiling.py
Class Name: ProfilingPanelTestCase
Method Name: test_generate_stats_no_root_func
Project Name: jazzband/django-debug-toolbar
Commit Name: 5299cf826284b6e082c5f18050e4f706faa81c39
Time: 2019-02-24
Author: jon.dufresne@gmail.com
File Name: tests/panels/test_request.py
Class Name: RequestPanelTestCase
Method Name: test_insert_content
Project Name: jazzband/django-debug-toolbar
Commit Name: 5299cf826284b6e082c5f18050e4f706faa81c39
Time: 2019-02-24
Author: jon.dufresne@gmail.com
File Name: tests/panels/test_sql.py
Class Name: SQLPanelTestCase
Method Name: test_generate_server_timing