def test_workflow_template_transition_delete_view_no_permission(self):
    self._create_test_workflow_template_transition()
    self._clear_events()
    response = self._request_test_workflow_template_transition_delete_view()
    self.assertEqual(response.status_code, 404)
    self.assertTrue((self.test_workflow_template_transition in WorkflowTransition.objects.all()))
    events = self._get_test_events()
    self.assertEqual(events.count(), 0)
def test_workflow_template_transition_delete_view_no_permission(self):
    self._create_test_workflow_template_transition()
    self._clear_events()
    response = self._request_test_workflow_template_transition_delete_view()
    self.assertEqual(response.status_code, 404)
    self.assertTrue((self.test_workflow_template_transition in WorkflowTransition.objects.all()))
    events = self._get_test_events()
    self.assertEqual(events.count(), 0)