blob: f127a5e56898883e46b2b4d913522a3b8737b0fb [file] [log] [blame]
Jon Perritt70bba632014-09-13 00:32:32 -05001package accounts
2
3import (
4 "testing"
5
6 "github.com/rackspace/gophercloud"
7)
8
9func TestAccountURL(t *testing.T) {
10 client := gophercloud.ServiceClient{
11 Endpoint: "http://localhost:5000/v3/",
12 }
13 url := accountURL(&client)
14 if url != "http://localhost:5000/v3/" {
15 t.Errorf("Unexpected service URL generated: [%s]", url)
16 }
17}