Added helpers to pytest tests
[anna.git] / example / diameter / launcher / resources / rest_api / ct / helpers / save-show-oam_test.py
1 import pytest
2
3
4 @pytest.mark.helpers
5 def test_001_save_oam(saveB64Artifact, admlc):
6
7   # Send GET
8   response = admlc.get("/show-oam")
9
10   # Verify response is ok (omit response content because it is informative and have dynamic data (timing)):
11   assert response["status"] == 200
12   assert response["body"]["success"] == "true"
13
14   # Save artifact from base64 encoded string received
15   saveB64Artifact(response["body"]["response"], "helpers/show-oam")
16