4 def test_001_i_want_to_look_an_specific_test(b64_encode, resources, admlc, admlf):
8 response = admlc.postDict("/testid-description/{}".format(flow), { "description":"Look test" })
11 responseBodyRef = { "success":"true", "response":str(flow) }
12 admlc.assert_response__status_body_headers(response, 200, responseBodyRef)
15 response = admlc.postDict("/test-look", { "id":flow })
18 lookExpected = resources("look_output.txt").format(flow)
19 responseBodyRef = { "success":"true", "response":"{}".format(b64_encode(lookExpected)) }
20 admlc.assert_response__status_body_headers(response, 200, responseBodyRef)
23 response = admlc.post("/test-clear")
25 def test_002_i_want_to_look_an_unexisting_test(admlc):
28 response = admlc.postDict("/test-look", { "id":666 })
31 responseBodyRef = { "success":"false", "response":"Internal error (check ADML traces): cannot found test id (666)" }
32 admlc.assert_response__status_body_headers(response, 200, responseBodyRef)