def test_parse_custom_audience_path():
    expected = {
        "customer_id": "whelk",
        "custom_audience_id": "octopus",
    }
    path = CustomAudienceServiceClient.custom_audience_path(**expected)

    # Check that the path construction is reversible.
    actual = CustomAudienceServiceClient.parse_custom_audience_path(path)
    assert expected == actual
def test_custom_audience_path():
    customer_id = "squid"
    custom_audience_id = "clam"
    expected = "customers/{customer_id}/customAudiences/{custom_audience_id}".format(
        customer_id=customer_id,
        custom_audience_id=custom_audience_id,
    )
    actual = CustomAudienceServiceClient.custom_audience_path(
        customer_id, custom_audience_id)
    assert expected == actual