def test_on_invalid(self):
        assert self.route.on_invalid(str).route['on_invalid'] == str
Test to ensure on_invalid handler can be changed on the fly
dataset/ETHPy150Open timothycrosley/hug/tests/test_routing.py/TestInternalValidation.test_on_invalid