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

def test_to ( ) : with pytest . raises ( falcon . http_status . HTTPStatus ) as redirect : hug . redirect . to ( '/' ) assert ( '302' in redirect . value . status )
test that the base redirect to function works as expected .