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