@skipUnlessDBFeature('supports_transactions')
    def test_autocommit_context_manager(self):
        with self.assertRaises(Exception):
            with transaction.autocommit():
                self.create_reporter_and_fail()

        self.assertEqual(Reporter.objects.count(), 1)
It raises PayloadError if parsing of the request body fails.
dataset/ETHPy150Open AppScale/appscale/AppServer/lib/django-1.5/tests/modeltests/transactions/tests.py/TransactionContextManagerTests.test_autocommit_context_manager--crossover with--dataset/ETHPy150Open hypothesis/h/h/api/test/views_test.py/TestCreate.test_it_raises_if_json_parsing_fails