Ejemplo n.º 1
0
def test_parse_remarketing_action_path():
    expected = {
        "customer_id": "whelk",
        "remarketing_action_id": "octopus",
    }
    path = RemarketingActionServiceClient.remarketing_action_path(**expected)

    # Check that the path construction is reversible.
    actual = RemarketingActionServiceClient.parse_remarketing_action_path(path)
    assert expected == actual
Ejemplo n.º 2
0
def test_remarketing_action_path():
    customer_id = "squid"
    remarketing_action_id = "clam"
    expected = "customers/{customer_id}/remarketingActions/{remarketing_action_id}".format(
        customer_id=customer_id,
        remarketing_action_id=remarketing_action_id,
    )
    actual = RemarketingActionServiceClient.remarketing_action_path(
        customer_id, remarketing_action_id)
    assert expected == actual