Ejemplo n.º 1
0
def test_parse_remarketing_action_path():
    expected = {
        "customer": "whelk",
        "remarketing_action": "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 = "squid"
    remarketing_action = "clam"
    expected = "customers/{customer}/remarketingActions/{remarketing_action}".format(
        customer=customer,
        remarketing_action=remarketing_action,
    )
    actual = RemarketingActionServiceClient.remarketing_action_path(
        customer, remarketing_action)
    assert expected == actual