def test_visits_a_fully_qualified_url(self, session):
     serverless_session = Session(session.mode, None)
     serverless_session.visit("http://{}:{}/foo".format(
         session.server.host, session.server.port))
     assert serverless_session.has_text("Another World")
 def test_respects_app_host(self, session):
     serverless_session = Session(session.mode, None)
     capybara.app_host = "http://{}:{}".format(session.server.host,
                                               session.server.port)
     serverless_session.visit("/foo")
     assert serverless_session.has_text("Another World")