(self)
| 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" |
| 21 | r = self.hack.http("http://httpbin.org/post", post=data) |
| 22 | self.assertTrue(json.loads(r.text())["form"] == {"a": "1", "b": "2", "c": "heloo"}) |
| 23 | |
| 24 | def test_json(self): |
| 25 | data = '{"hack-requests":"v1.0","author":"w8ay"}' |