Assert that the admin refuses to delete the object because a protected relation keeps it (the page "Cannot delete …"), and with "because of" one object it names as keeping it.
Examples
Then the deletion should be refused
Then the deletion should be refused because of "Question: Which river is the longest?"
And the deletion should be refused because of "Question: How far is the nearest star?"
Then the deletion should be refused because of "Question: Delete test question"
And the deletion should be refused
Pattern
Then(/^the deletion should be refused(?: because of "([^"]*)")?$/, …)
Part of @webship-js/django-steps (github.com/webship/django-steps), a step pack for Webship-js 2.0.x.