4 def test_001_i_want_to_get_the_state_for_specific_test(admlc, admlf):
8 response = admlc.postDict("/testid-description/{}".format(flow), { "description":"Look test" })
11 responseBodyRef = { "success":"true", "response":"Done" }
12 admlc.assert_response__status_body_headers(response, 200, responseBodyRef)
15 response = admlc.postDict("/test-state", { "id":flow })
18 responseBodyRef = { "success":"false", "response":"Initialized" } # success is false, because test-state returns true when test is Success.
19 admlc.assert_response__status_body_headers(response, 200, responseBodyRef)
22 response = admlc.post("/test-clear")
24 def test_002_i_want_to_get_the_state_for_unexisting_test(admlc):
27 response = admlc.postDict("/test-state", { "id":666 })
30 responseBodyRef = { "success":"false", "response":"Internal error (check ADML traces): cannot found test id (666)" }
31 admlc.assert_response__status_body_headers(response, 200, responseBodyRef)