def test_found():
 with pytest.raises(falcon.http_status.HTTPStatus) as redirect:
  hug.redirect.found('/')
 assert ('302' in redirect.value.status)

def test_found ( ) : with pytest . raises ( falcon . http_status . HTTPStatus ) as redirect : hug . redirect . found ( '/' ) assert ( '302' in redirect . value . status )
test to ensure function causes a redirect with http 302 status code .