Skip to content
Snippets Groups Projects
Commit 02440fa2 authored by David Barnes's avatar David Barnes
Browse files

Add test to verify that dump or dd does not magically trigger without

the use of dump and dd.
parent a9228744
Branches
No related merge requests found
...@@ -13,9 +13,20 @@ from django_expanded_test_cases import IntegrationTestCase ...@@ -13,9 +13,20 @@ from django_expanded_test_cases import IntegrationTestCase
class DumpDieGeneralTestCase(IntegrationTestCase): class DumpDieGeneralTestCase(IntegrationTestCase):
"""Verify handling of dumped "simple" types.""" """Verify handling of dumped "simple" types."""
@override_settings(DEBUG=True)
def test_view_returns_normal_response_when_no_dumps_used(self): def test_view_returns_normal_response_when_no_dumps_used(self):
"""Verify view returns normal response when no dumps used""" """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): def test_dump_without_a_dd_still_shows_dump_view(self):
"""Verify that only using dump and no dd still shows the dump view.""" """Verify that only using dump and no dd still shows the dump view."""
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment