def test_workflow_template_transition_field_edit_view_no_permission(self):
    self._create_test_workflow_template_transition_field()
    workflow_template_transition_field_label = self.test_workflow_template_transition_field.label
    self._clear_events()
    response = self._request_workflow_template_transition_field_edit_view()
    self.assertEqual(response.status_code, 404)
    self.test_workflow_template_transition_field.refresh_from_db()
    self.assertEqual(workflow_template_transition_field_label, self.test_workflow_template_transition_field.label)
    events = self._get_test_events()
    self.assertEqual(events.count(), 0)
def test_workflow_template_transition_field_edit_view_no_permission(self):
    self._create_test_workflow_template_transition_field()
    workflow_template_transition_field_label = self.test_workflow_template_transition_field.label
    self._clear_events()
    response = self._request_workflow_template_transition_field_edit_view()
    self.assertEqual(response.status_code, 404)
    self.test_workflow_template_transition_field.refresh_from_db()
    self.assertEqual(workflow_template_transition_field_label, self.test_workflow_template_transition_field.label)
    events = self._get_test_events()
    self.assertEqual(events.count(), 0)