def test_unique_constraint_with_unset_product(self):
        new = self.model.ProductVersion()

        with self.assertRaises(ValidationError):
            new.full_clean()
Unique-check doesn't blow up if product is unset.
dataset/ETHPy150Open mozilla/moztrap/tests/model/core/models/test_productversion.py/ProductVersionTest.test_unique_constraint_with_unset_product