aboutsummaryrefslogtreecommitdiffstats
path: root/tests/test_integration.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/test_integration.py')
-rw-r--r--tests/test_integration.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/test_integration.py b/tests/test_integration.py
index 56a2d9c..e7a4fe0 100644
--- a/tests/test_integration.py
+++ b/tests/test_integration.py
@@ -80,6 +80,12 @@ class DebugToolbarTestCase(BaseTestCase):
def test_middleware_response_only(self):
DebugToolbarMiddleware().process_response(self.request, self.response)
+ def test_middleware_response_insertion(self):
+ resp = regular_view(self.request, "İ")
+ DebugToolbarMiddleware().process_response(self.request, resp)
+ # check toolbar insertion before "</body>"
+ self.assertContains(resp, '</div>\n</body>')
+
@override_settings(DEBUG=True)
class DebugToolbarIntegrationTestCase(TestCase):