def test_temporary():
 with pytest.raises(falcon.http_status.HTTPStatus) as redirect:
  hug.redirect.temporary('/')
 assert ('307' in redirect.value.status)

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