Пример #1
0
def test_parse_bidding_strategy_path():
    expected = {
        "customer_id": "whelk",
        "bidding_strategy_id": "octopus",
    }
    path = CampaignServiceClient.bidding_strategy_path(**expected)

    # Check that the path construction is reversible.
    actual = CampaignServiceClient.parse_bidding_strategy_path(path)
    assert expected == actual
Пример #2
0
def test_bidding_strategy_path():
    customer_id = "squid"
    bidding_strategy_id = "clam"
    expected = "customers/{customer_id}/biddingStrategies/{bidding_strategy_id}".format(
        customer_id=customer_id,
        bidding_strategy_id=bidding_strategy_id,
    )
    actual = CampaignServiceClient.bidding_strategy_path(
        customer_id, bidding_strategy_id)
    assert expected == actual