def test_steps(self):

        new_steps = [
            {
                "instruction": "instr1",
                "expected": "exp1"
            },
            {
                "instruction": "instr2",
                "expected": "exp2"
            },
            {
                "instruction": "instr3",
                "expected": "exp3"
            },
        ]

        self.import_data(
            {
                "cases": [
                    {
                        "name": "Foo",
                        "steps": new_steps,
                        }
                    ]
                }
            )

        cv = self.model.CaseVersion.objects.get()

        self.assertEqual(
            [(s.number, s.instruction, s.expected) for s in cv.steps.order_by(
                "number")],
            [(i + 1, s["instruction"], s["expected"]) for i, s in enumerate(
                new_steps)],
            )
Setting up the test client for reuse throughout.
dataset/ETHPy150Open mozilla/moztrap/tests/model/library/test_importer.py/ImporterTest.test_steps--crossover with--dataset/ETHPy150Open palewire/django-correx/correx/tests/unittests/view_tests.py/CorrexViewTests.setUp