mirror of
https://github.com/Hopiu/wagtail.git
synced 2026-05-16 03:03:14 +00:00
Add test for linked_objects being output when deletion is disallowed
Required as a prerequisite for making this code Django-1.10 compatible, as per https://github.com/torchbox/wagtail/issues/2723#issuecomment-227241446
This commit is contained in:
parent
865841eedf
commit
810952cfc8
1 changed files with 4 additions and 0 deletions
|
|
@ -302,6 +302,10 @@ class TestDeleteViewWithProtectedRelation(TestCase, WagtailTestUtils):
|
|||
response,
|
||||
"'J. R. R. Tolkien' is currently referenced by other objects"
|
||||
)
|
||||
self.assertContains(
|
||||
response,
|
||||
"<li><b>Book:</b> The Lord of the Rings</li>"
|
||||
)
|
||||
|
||||
# Author not deleted
|
||||
self.assertTrue(Author.objects.filter(id=1).exists())
|
||||
|
|
|
|||
Loading…
Reference in a new issue