class TestNotFoundRouter(TestHTTPRouter): """Collection of tests to ensure the NotFoundRouter object works as expected""" route = NotFoundRouter(output='output', versions=(1, ), parse_body=False, transform='transform', requires=('love', ), parameters=('one', ), defaults={'one': 'value'})
class TestNotFoundRouter(TestHTTPRouter): """Collection of tests to ensure the NotFoundRouter object works as expected""" route = NotFoundRouter( output="output", versions=(1,), parse_body=False, transform="transform", requires=("love",), parameters=("one",), defaults={"one": "value"}, )
def test_not_found(self): """Test to ensure you can dynamically create a Not Found route attached to a hug API""" assert self.router.not_found().route == NotFoundRouter(api=api).route