示例#1
0
def test_parse_account_link_path():
    expected = {
        "customer_id": "whelk",
        "account_link_id": "octopus",
    }
    path = AccountLinkServiceClient.account_link_path(**expected)

    # Check that the path construction is reversible.
    actual = AccountLinkServiceClient.parse_account_link_path(path)
    assert expected == actual
示例#2
0
def test_account_link_path():
    customer_id = "squid"
    account_link_id = "clam"
    expected = "customers/{customer_id}/accountLinks/{account_link_id}".format(
        customer_id=customer_id,
        account_link_id=account_link_id,
    )
    actual = AccountLinkServiceClient.account_link_path(
        customer_id, account_link_id)
    assert expected == actual