Add fourth work package for REST API implementation
[anna.git] / example / diameter / launcher / resources / rest_api / ct / fsm-testing / test-initialized_test.py
1 import pytest
2
3
4 def test_001_i_want_check_the_number_of_initialized_test_cases_in_the_pool(admlc, admlf):
5
6   # Send POST
7   flow = admlf.getId()
8   response = admlc.postDict("/testid-description/{}".format(flow), { "description":"My test" })
9
10   # Verify response
11   responseBodyRef = { "success":"true", "response":"Done" }
12   admlc.assert_response__status_body_headers(response, 200, responseBodyRef)
13
14   # Send POST
15   response = admlc.post("/test-initialized")
16
17   # Verify response
18   responseBodyRef = { "success":"true", "response":"1" }
19   admlc.assert_response__status_body_headers(response, 200, responseBodyRef)
20
21   # Cleanup
22   response = admlc.post("/test-clear")
23