From 02440fa2354325ad76a047d868c82d0fccbf5597 Mon Sep 17 00:00:00 2001
From: David Barnes <barnesdavidj@gmail.com>
Date: Mon, 22 Jul 2024 19:11:56 -0400
Subject: [PATCH] Add test to verify that dump or dd does not magically trigger
 without the use of dump and dd.

---
 tests/test_views/test_general.py | 13 ++++++++++++-
 1 file changed, 12 insertions(+), 1 deletion(-)

diff --git a/tests/test_views/test_general.py b/tests/test_views/test_general.py
index a0a87a8..d457284 100644
--- a/tests/test_views/test_general.py
+++ b/tests/test_views/test_general.py
@@ -13,9 +13,20 @@ from django_expanded_test_cases import IntegrationTestCase
 class DumpDieGeneralTestCase(IntegrationTestCase):
     """Verify handling of dumped "simple" types."""
 
+    @override_settings(DEBUG=True)
     def test_view_returns_normal_response_when_no_dumps_used(self):
         """Verify view returns normal response when no dumps used"""
-        pass
+        url = "django_dump_die:index"
+
+        self.assertGetResponse(
+            url,
+            expected_title="Django DumpDie Examples",
+            expected_header="Django DumpDie Example Index Page",
+            expected_content=[
+                "<p>The following pages provide example output when using the Django DumpDie package.</p>"
+            ],
+            expected_not_content=["<div><h1>Django DumpDie</h1></div>"],
+        )
 
     def test_dump_without_a_dd_still_shows_dump_view(self):
         """Verify that only using dump and no dd still shows the dump view."""
-- 
GitLab