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

    # Check that the path construction is reversible.
    actual = BiddingStrategyServiceClient.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 = BiddingStrategyServiceClient.bidding_strategy_path(customer_id, bidding_strategy_id)
    assert expected == actual