Add fourth work package for REST API implementation
[anna.git] / example / diameter / launcher / resources / rest_api / ct / fsm-testing / test-initialized_test.py
diff --git a/example/diameter/launcher/resources/rest_api/ct/fsm-testing/test-initialized_test.py b/example/diameter/launcher/resources/rest_api/ct/fsm-testing/test-initialized_test.py
new file mode 100644 (file)
index 0000000..dde5330
--- /dev/null
@@ -0,0 +1,23 @@
+import pytest
+
+
+def test_001_i_want_check_the_number_of_initialized_test_cases_in_the_pool(admlc, admlf):
+
+  # Send POST
+  flow = admlf.getId()
+  response = admlc.postDict("/testid-description/{}".format(flow), { "description":"My test" })
+
+  # Verify response
+  responseBodyRef = { "success":"true", "response":"Done" }
+  admlc.assert_response__status_body_headers(response, 200, responseBodyRef)
+
+  # Send POST
+  response = admlc.post("/test-initialized")
+
+  # Verify response
+  responseBodyRef = { "success":"true", "response":"1" }
+  admlc.assert_response__status_body_headers(response, 200, responseBodyRef)
+
+  # Cleanup
+  response = admlc.post("/test-clear")
+