(self)
| 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" |