def METHOD_NAME(self, patched_update_status_signal):
    """
    Checks if a signal in a state can NOT reach all not allowed states. Calculated from the
    configured workflow.ALLOWED_STATUS_CHANGES
    :param patched_update_status_signal:
    :return:
    """
    all_states = workflow.ALLOWED_STATUS_CHANGES.keys()
    status_choices_dict = dict(workflow.STATUS_CHOICES)
    for current_state in workflow.ALLOWED_STATUS_CHANGES:
        allowed_states = workflow.ALLOWED_STATUS_CHANGES[current_state]
        not_allowed_states = all_states - allowed_states
        for not_allowed_state in not_allowed_states:
            with self.assertRaises(ValidationError) as ve:
                signal = factories.SignalFactory.create(status__state=current_state)
                new_status_data = {'state': not_allowed_state,
                                   'text': 'Dit is een test.'}
                if not_allowed_state == workflow.TE_VERZENDEN:
                    new_status_data.update({'target_api': Status.TARGET_API_SIGMAX})
                Signal.actions.update_status(new_status_data, signal)
            msg = 'Invalid state transition from `{}` to `{}`.'.format(
                signal.status.get_state_display(),
                status_choices_dict[not_allowed_state] if not_allowed_state else ''
            )
            self.assertEqual(ve.exception.messages[0], msg)
            self.assertEqual(signal.status.state, current_state)
    self.assertEqual(patched_update_status_signal.send_robust.call_count, 0)