def test_get_exception_handler_for_non_handled_exceptio(self): """Exception handler has no handler for non-supported exception""" for exception in INVALID_EXCEPTIONS: with self.assertRaises(ValueError): exceptionhandler.get_exception_handler(exception())
def test_get_exception_handler_for_handled_exceptions(self): """Exception handler has correct handler for every Misago exception""" for exception in exceptionhandler.HANDLED_EXCEPTIONS: exceptionhandler.get_exception_handler(exception())