@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 cloudera/hue/desktop/core/ext-py/Django-1.6.10/tests/transactions/tests.py/TransactionContextManagerTests.test_autocommit