def test_create_two_caseversions_same_user(self):

        # need a user to exist, so the import can find it.
        user = self.F.UserFactory.create(email="sumbudee@mozilla.com")

        case_data = {
            "cases": [
                {
                    "created_by": "sumbudee@mozilla.com",
                    "name": "Foo",
                    "steps": [{"instruction": "do this"}],
                    },
                {
                    "created_by": "sumbudee@mozilla.com",
                    "name": "Bar",
                    "steps": [{"instruction": "do this"}],
                    }
                ]
            }

        # Test code as normal
        with self.assertNumQueries(23):
            result = self.import_data(case_data)

        cv1 = self.model.CaseVersion.objects.get(name="Foo")
        self.assertEqual(cv1.created_by, user)
        cv2 = self.model.CaseVersion.objects.get(name="Bar")
        self.assertEqual(cv2.created_by, user)
        self.assertEqual(result.num_cases, 2)
Two caseversions that both use the same user.  Test that import caches
dataset/ETHPy150Open mozilla/moztrap/tests/model/library/test_importer.py/ImporterTest.test_create_two_caseversions_same_user