コード例 #1
0
def test_parse_common_billing_account_path():
    expected = {
        "billing_account": "nudibranch",
    }
    path = AssetServiceClient.common_billing_account_path(**expected)

    # Check that the path construction is reversible.
    actual = AssetServiceClient.parse_common_billing_account_path(path)
    assert expected == actual
コード例 #2
0
def test_common_billing_account_path():
    billing_account = "oyster"
    expected = "billingAccounts/{billing_account}".format(billing_account=billing_account, )
    actual = AssetServiceClient.common_billing_account_path(billing_account)
    assert expected == actual