コード例 #1
0
ファイル: test_policygen.py プロジェクト: wantutz/aburame
def test_003_implement_all_commonservices(sut_handle):
    policygen1 = PolicyGen(sut_handle)
    status = policygen1.implement_all_commonservices()
    print("Implement all common services has completed successfully")
    if status ==200:
        assert status == 200, "Implement all common services has completed "
    else:
        print(status)
        assert False
コード例 #2
0
def test_003_implement_all_commonservices(sut_handle):
    policygen1 = PolicyGen(sut_handle)
    status = policygen1.implement_all_commonservices()
    print("Implement all common services has completed successfully")
    if status == 200:
        result = client.send_post('add_result/12281', {
            'status_id': 1,
            'comment': 'Marked using automation'
        })
        print(result)
        assert status == 200, "Implement all common services has completed "
    else:
        result = client.send_post(
            'add_result/12281', {
                'status_id':
                5,
                'comment':
                'Marked using automation - Failed to purge data %s' % status
            })
        print(status)
        assert False