Esempio n. 1
0
def test_parse_combined_audience_path():
    expected = {
        "customer_id": "whelk",
        "combined_audience_id": "octopus",
    }
    path = CombinedAudienceServiceClient.combined_audience_path(**expected)

    # Check that the path construction is reversible.
    actual = CombinedAudienceServiceClient.parse_combined_audience_path(path)
    assert expected == actual
Esempio n. 2
0
def test_combined_audience_path():
    customer_id = "squid"
    combined_audience_id = "clam"
    expected = "customers/{customer_id}/combinedAudiences/{combined_audience_id}".format(
        customer_id=customer_id,
        combined_audience_id=combined_audience_id,
    )
    actual = CombinedAudienceServiceClient.combined_audience_path(
        customer_id, combined_audience_id)
    assert expected == actual