MCPcopy Create free account
hub / github.com/boy-hack/hack-requests / test_get

Method test_get

tests/test_http.py:15–17  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

13 self.hack = HackRequests.hackRequests()
14
15 def test_get(self):
16 r = self.hack.http("http://httpbin.org/get?a=1&b=2&c=heloo")
17 self.assertTrue(json.loads(r.text())["args"] == {"a": "1", "b": "2", "c": "heloo"})
18
19 def test_post(self):
20 data = "a=1&b=2&c=heloo"

Callers

nothing calls this directly

Calls 2

textMethod · 0.80
httpMethod · 0.45

Tested by

no test coverage detected