def test_create_caseversion_existing_tag(self):

        # need a tag to exist, so the import can find it.
        tag = self.model.Tag.objects.create(
            name="FooTag",
            product=self.pv.product,
            )

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

        cv = self.model.CaseVersion.objects.get()
        self.assertEqual(cv.tags.get(), tag)
        self.assertEqual(result.num_cases, 1)
Return a wrapped, valid UUID value.
dataset/ETHPy150Open mozilla/moztrap/tests/model/library/test_importer.py/ImporterTest.test_create_caseversion_existing_tag--crossover with--dataset/ETHPy150Open lukesneeringer/django-pgfields/django_pg/models/fields/uuid.py/UUIDField.get_prep_value