def test_create_caseversion_suites(self):

        new_suites = ["suite1 name", "suite2 name", "suite3 name"]

        result = self.import_data(
            {
                "cases": [
                    {
                        "name": "Foo",
                        "steps": [{"instruction": "do this"}],
                        "suites": new_suites,
                        }
                    ]
                }
            )

        cv = self.model.CaseVersion.objects.get()
        case_suites = [suite.name for suite in cv.case.suites.all()]
        self.assertEqual(set(case_suites), set(new_suites))
        self.assertEqual(result.num_cases, 1)
Test that case suites get created and assigned
dataset/ETHPy150Open mozilla/moztrap/tests/model/library/test_importer.py/ImporterTest.test_create_caseversion_suites