def test_integrity_checks_on_update(self):
        # Create an Article.
        models.Article.objects.create(headline="Test article", pub_date=datetime.datetime(2010, 9, 4), reporter=self.r)
        # Retrive it from the DB
        a = models.Article.objects.get(headline="Test article")
        a.reporter_id = 30
        try:
            a.save()
        except IntegrityError:
            pass
Finalizes an uploaded draft.
dataset/ETHPy150Open AppScale/appscale/AppServer/lib/django-1.2/tests/regressiontests/backends/tests.py/FkConstraintsTests.test_integrity_checks_on_update--crossover with--dataset/ETHPy150Open mozilla/kitsune/kitsune/gallery/views.py/upload