Beispiel #1
0
def test_ping():
    assert com.get("/topup/ping", headers).status_code == 200
def test_list_accounts():
    response = com.get("/topup/accounts", headers)
    assert response.status_code == 200
Beispiel #3
0
def test_products_of_operator():
    assert com.get("/topup/operator/1437/product", headers).status_code == 200
Beispiel #4
0
def test_products_of_nonexistent_operator():
    assert com.get("/topup/operator/1437000/product",
                   headers=headers).status_code == 200
Beispiel #5
0
def test_operators_of_india():
    assert com.get("/topup/766/operators", headers).status_code == 200
Beispiel #6
0
def test_operators_of_non_existent_country():
    response = com.get("/topup/76600/operators", headers)
    assert response.status_code == 200
    assert response.json()['errorCode'] != 0
Beispiel #7
0
def test_non_exist_indian_mobile():
    response = com.get("/topup/+919845104104104/product", headers)
    assert response.status_code == 200
    assert response.json()['errorCode'] != 0
Beispiel #8
0
def test_malaysian_mobile():
    response = com.get("/topup/+60107860848/product", headers=headers)
    assert response.status_code == 200
Beispiel #9
0
def test_junk_mobile():
    response = com.get("/topup/abcd/product", headers)
    assert response.status_code == 400
Beispiel #10
0
def test_indian_mobile():
    response = com.get("/topup/+919845104104/product", headers)
    assert response.status_code == 200
Beispiel #11
0
def test_finance_management():
    response = com.get("/topup/financial-position", headers)
    assert response.status_code == 200