def test_form_preview(self):
        # Pass strings for form submittal and add stage variable to
        # show we previously saw first stage of the form.
        self.test_data.update({'stage': 1})
        response = self.client.post('/test1/', self.test_data)
        # Check to confirm stage is set to 2 in output form.
        stage = self.input % 2
        self.assertContains(response, stage, 1)
Turns autocommit off for the database connection.
dataset/ETHPy150Open AppScale/appscale/AppServer/lib/django-1.3/django/contrib/formtools/tests/__init__.py/PreviewTests.test_form_preview--crossover with--dataset/ETHPy150Open GeoscienceAustralia/agdc/src/abstract_ingester/ingest_db_wrapper.py/IngestDBWrapper.turn_off_autocommit