@skipUnlessDBFeature('supports_transactions')
    def test_autocommit(self):
        with self.assertRaises(Exception):
            self.create_reporter_and_fail()
        # The object created before the exception still exists
        self.assertEqual(Reporter.objects.count(), 1)
The default behavior is to autocommit after each save() action.
dataset/ETHPy150Open AppScale/appscale/AppServer/lib/django-1.3/tests/modeltests/transactions/tests_25.py/TransactionContextManagerTests.test_autocommit