Beispiel #1
0
def test_parse_campaign_path():
    expected = {
        "customer": "scallop",
        "campaign": "abalone",
    }
    path = ChangeStatusServiceClient.campaign_path(**expected)

    # Check that the path construction is reversible.
    actual = ChangeStatusServiceClient.parse_campaign_path(path)
    assert expected == actual
Beispiel #2
0
def test_campaign_path():
    customer = "winkle"
    campaign = "nautilus"
    expected = "customers/{customer}/campaigns/{campaign}".format(customer=customer, campaign=campaign, )
    actual = ChangeStatusServiceClient.campaign_path(customer, campaign)
    assert expected == actual