def METHOD_NAME(self):
    form = FormFactory.create()
    step1 = FormStepFactory.create(
        form=form,
        form_definition__configuration={
            "components": [
                {
                    "type": "select",
                    "key": "pet",
                    "data": {
                        "values": [
                            {"label": "Cat", "value": "cat"},
                            {"label": "Dog", "value": "dog"},
                        ]
                    },
                }
            ]
        },
    )
    step2 = FormStepFactory.create(
        form=form,
        form_definition__configuration={
            "components": [
                {
                    "type": "textfield",
                    "key": "step2",
                }
            ]
        },
    )
    step3 = FormStepFactory.create(
        form=form,
        form_definition__configuration={
            "components": [
                {
                    "type": "textfield",
                    "key": "step3",
                }
            ]
        },
    )
    FormLogicFactory.create(
        form=form,
        json_logic_trigger={
            "==": [
                {"var": "pet"},
                "cat",
            ]
        },
        actions=[
            {
                "form_step_uuid": f"{step2.uuid}",
                "action": {
                    "name": "Step is not applicable",
                    "type": "step-not-applicable",
                },
            }
        ],
    )
    FormLogicFactory.create(
        form=form,
        json_logic_trigger={
            "==": [
                {"var": "pet"},
                "dog",
            ]
        },
        actions=[
            {
                "form_step_uuid": f"{step3.uuid}",
                "action": {
                    "name": "Step is not applicable",
                    "type": "step-not-applicable",
                },
            }
        ],
    )
    submission = SubmissionFactory.create(form=form)
    SubmissionStepFactory.create(
        submission=submission,
        form_step=step1,
        data={"pet": "dog"},  # With this data, step 3 is not applicable
    )
    endpoint = reverse(
        "api:submission-steps-logic-check",
        kwargs={"submission_uuid": submission.uuid, "step_uuid": step1.uuid},
    )
    self._add_submission_to_session(submission)
    # Make a change to the data, which causes step 2 to be not applicable (while step 3 is applicable again)
    response = self.client.post(endpoint, data={"data": {"pet": "cat"}})
    self.assertEqual(status.HTTP_200_OK, response.status_code)
    self.assertFalse(response.data["submission"]["steps"][1]["is_applicable"])
    self.assertTrue(response.data["submission"]["steps"][2]["is_applicable"])