def METHOD_NAME(self):
    # Github issue #2117
    form = FormFactory.create(name="Export form 1")
    form_step_1 = FormStepFactory(
        form=form,
        form_definition__configuration={
            "components": [
                {
                    "type": "textfield",
                    "key": "input1",
                }
            ]
        },
    )
    form_step_2 = FormStepFactory(
        form=form,
        form_definition__configuration={
            "components": [
                {
                    "type": "textfield",
                    "key": "input2",
                }
            ]
        },
    )
    # first submission with two steps
    submission_1 = SubmissionFactory.create(
        form=form, completed=True, completed_on=timezone.now()
    )
    SubmissionStepFactory.create(
        submission=submission_1,
        form_step=form_step_1,
        data={"input1": "sub1.input1"},
    )
    SubmissionStepFactory.create(
        submission=submission_1,
        form_step=form_step_2,
        data={"input2": "sub1.input2"},
    )
    # second submission with just one step
    submission_2 = SubmissionFactory.create(
        form=form, completed=True, completed_on=timezone.now()
    )
    SubmissionStepFactory.create(
        submission=submission_2,
        form_step=form_step_1,
        data={"input1": "sub2.input1"},
    )
    dataset = create_submission_export(Submission.objects.order_by("-pk"))
    self.assertEqual(
        dataset.headers,
        [
            "Formuliernaam",
            "Inzendingdatum",
            "input1",
            "input2",
        ],
    )
    self.assertEqual(
        dataset[0],
        (
            "Export form 1",
            datetime(2022, 5, 9, 15, 0, 0),
            "sub2.input1",
            None,
        ),
    )
    self.assertEqual(
        dataset[1],
        (
            "Export form 1",
            datetime(2022, 5, 9, 15, 0, 0),
            "sub1.input1",
            "sub1.input2",
        ),
    )