def test_see_other():
 with pytest.raises(falcon.http_status.HTTPStatus) as redirect:
  hug.redirect.see_other('/')
 assert ('303' in redirect.value.status)

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