(self)
| 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"}' |
| 26 | r = self.hack.http("http://httpbin.org/post", post=data) |
| 27 | self.assertTrue("hack-requests" in r.text()) |
| 28 | |
| 29 | def test_localhost(self): |
| 30 | headers = { |