@skipUnlessDBFeature('supports_transactions')
    def test_manually_managed_mistake(self):
        with self.assertRaises(transaction.TransactionManagementError):
            with transaction.commit_manually():
                Reporter.objects.create(first_name="Scott", last_name="Browning")
If you forget, you'll get bad errors.
dataset/ETHPy150Open AppScale/appscale/AppServer/lib/django-1.3/tests/modeltests/transactions/tests_25.py/TransactionContextManagerTests.test_manually_managed_mistake