def test_workflow_template_transition_field_create_view_no_permission(self):
    workflow_template_transition_field_count = self.test_workflow_template_transition.fields.count()
    self._clear_events()
    response = self._request_workflow_template_transition_field_create_view()
    self.assertEqual(response.status_code, 404)
    self.assertEqual(self.test_workflow_template_transition.fields.count(), workflow_template_transition_field_count)
    events = self._get_test_events()
    self.assertEqual(events.count(), 0)
def test_workflow_template_transition_field_create_view_no_permission(self):
    workflow_template_transition_field_count = self.test_workflow_template_transition.fields.count()
    self._clear_events()
    response = self._request_workflow_template_transition_field_create_view()
    self.assertEqual(response.status_code, 404)
    self.assertEqual(self.test_workflow_template_transition.fields.count(), workflow_template_transition_field_count)
    events = self._get_test_events()
    self.assertEqual(events.count(), 0)