Added helpers to pytest tests
[anna.git] / example / diameter / launcher / resources / rest_api / ct / helpers / save-test-look_test.py
1 import pytest
2
3
4 @pytest.mark.dynamic_helpers
5 @pytest.mark.xfail(reason="To be used after dynamic mark execution")
6 def test_001_save_test_look(saveB64Artifact, admlc):
7
8   # Send POST
9   response = admlc.postDict("/test-look", { "id":5000 })
10
11   # Verify response is ok (omit response content because it is informative and have dynamic data (timing)):
12   assert response["status"] == 200
13   assert response["body"]["success"] == "true"
14
15   # Save artifact from base64 encoded string received
16   saveB64Artifact(response["body"]["response"], "helpers/test-look")
17