def test_unique_constraint(self):
        pv = self.F.ProductVersionFactory.create()

        new = self.F.ProductVersionFactory.build(
            product=pv.product, version=pv.version)

        with self.assertRaises(ValidationError):
            new.full_clean()
Main method that does all the hard work, conforming to the Django view
dataset/ETHPy150Open mozilla/moztrap/tests/model/core/models/test_productversion.py/ProductVersionTest.test_unique_constraint--crossover with--dataset/ETHPy150Open AppScale/appscale/AppServer/lib/django-1.4/django/contrib/formtools/wizard/legacy.py/FormWizard.__call__