1
This commit is contained in:
1 parent
2ea1a79bda
commit
85425483c0
50 files changed
+6468
-1854
No files matched your search
@@ -53,7 +53,7 @@ class ProxyTests(unittest.TestCase):
|
||||
got = json.loads(urllib.request.urlopen(base + "/api/state?x=1").read())
|
||||
self.assertEqual(got, {"method": "GET", "path": "/api/state?x=1"})
|
||||
req = urllib.request.Request(base + "/api/coin/A/start", data=json.dumps({"a": 1}).encode(),
|
||||
method="POST", headers={"Content-Type": "application/json"})
|
||||
method="POST", headers={"Content-Type": "application/json", "X-Sim": "1"})
|
||||
got = json.loads(urllib.request.urlopen(req).read())
|
||||
self.assertEqual(got["body"], {"a": 1})
|
||||
finally:
|
||||
|
||||
Reference in new issue
Block a user