Ejemplo n.º 1
0
def test_ad_parameter_path():
    customer = "oyster"
    ad_parameter = "nudibranch"
    expected = "customers/{customer}/adParameters/{ad_parameter}".format(
        customer=customer,
        ad_parameter=ad_parameter,
    )
    actual = AdParameterServiceClient.ad_parameter_path(customer, ad_parameter)
    assert expected == actual
Ejemplo n.º 2
0
def test_parse_ad_parameter_path():
    expected = {
        "customer": "cuttlefish",
        "ad_parameter": "mussel",
    }
    path = AdParameterServiceClient.ad_parameter_path(**expected)

    # Check that the path construction is reversible.
    actual = AdParameterServiceClient.parse_ad_parameter_path(path)
    assert expected == actual