def test_response(self): try: 1/0 except Exception as exc: assert isinstance(custom_exception_handler(exc), Response)
def test_response(self): try: 1 / 0 except Exception as exc: assert isinstance(custom_exception_handler(exc), Response)
def test_raised(self): with self.settings(DEBUG_PROPAGATE_EXCEPTIONS=True): try: 1/0 except Exception as exc: custom_exception_handler(exc)
def test_raised(self): with self.settings(DEBUG_PROPAGATE_EXCEPTIONS=True): try: 1 / 0 except Exception as exc: custom_exception_handler(exc)