def test_004_purge_data(sut_handle): policygen1 = PolicyGen(sut_handle) status = policygen1.purge_data_gm() print("Data has been purged") if status == 200: result = client.send_post('add_result/12371', { 'status_id': 1, 'comment': 'Marked using automation' }) result = client.send_post('add_result/12307', { 'status_id': 1, 'comment': 'Marked using automation' }) print(result) assert status == 200, "Purge completed successfully " else: result = client.send_post( 'add_result/12371', { 'status_id': 5, 'comment': 'Marked using automation - Failed to purge data %s' % status }) print(result)
def test_004_purge_data(sut_handle): policygen1 = PolicyGen(sut_handle) status = policygen1.purge_data_gm() print("Data has been purged") if status ==200: assert status == 200, "Purge completed successfully " else: assert False