Add fourth work package for REST API implementation
[anna.git] / example / diameter / launcher / resources / rest_api / ct / fsm-testing / test-report-hex_test.py
1 import pytest
2
3
4 def test_001_i_want_to_enable_report_hex_for_test_manager_progress(admlc):
5
6   # Send POST
7   response = admlc.postDict("/test-report-hex", { "action":"enable" })
8
9   # Verify response
10   responseBodyRef = { "success":"true", "response":"Report includes hexadecimal messages" }
11   admlc.assert_response__status_body_headers(response, 200, responseBodyRef)
12
13 def test_002_i_want_to_disable_report_hex_for_test_manager_progress(admlc):
14
15   # Send POST
16   response = admlc.postDict("/test-report-hex", { "action":"disable" })
17
18   # Verify response
19   responseBodyRef = { "success":"true", "response":"Report excludes hexadecimal messages" }
20   admlc.assert_response__status_body_headers(response, 200, responseBodyRef)
21