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