next try, this sh*** lib drives me crazy
authorpeusterm <manuel.peuster@uni-paderborn.de>
Thu, 12 May 2016 14:12:57 +0000 (16:12 +0200)
committerpeusterm <manuel.peuster@uni-paderborn.de>
Thu, 12 May 2016 14:12:57 +0000 (16:12 +0200)
src/emuvim/test/unittests/test_sonata_dummy_gatekeeper.py

index 375087d..cbf9c8b 100755 (executable)
@@ -37,7 +37,7 @@ class testSonataDummyGatekeeper(SimpleTestTopology):
 
         # instantiate service
         service_uuid = json.loads(r.text).get("service_uuid")
-        r2 = requests.post("http://127.0.0.1:5000/instantiations", json={"service_uuid": service_uuid})
+        r2 = requests.post("http://127.0.0.1:5000/instantiations", data=json.dumps({"service_uuid": service_uuid}))
         self.assertEqual(r2.status_code, 200)
 
         # give the emulator some time to instantiate everything