'Transaction is eventually managed by outer-most transaction atomic
block. DRF do not try to interfere here.
We let django deal with the transaction when it will catch the Exception.'

def test_generic_exception_delegate_transaction_management(self):

    request = factory.post(u'/')
    with self.assertNumQueries(3):
        with transaction.atomic():
            self.assertRaises(Exception, self.view, request)
            assert (not transaction.get_rollback())
    assert (BasicModel.objects.count() == 1)
