github.com/emcfarlane/larking@v0.0.0-20220605172417-1704b45ee6c3/starlib/net/starlarkhttp/testdata/nethttp.star (about)

     1  # Tests of Starlark 'nethttp' extension.
     2  load("net/http.star", "http")
     3  
     4  def test_get(t):
     5      rsp = http.get(addr + "/hello")
     6      print(rsp)
     7      t.eq(rsp.body.read_all(), b"world\n")