| Jon Perritt | 70bba63 | 2014-09-13 00:32:32 -0500 | [diff] [blame] | 1 | package accounts |
| 2 | |||||
| 3 | import ( | ||||
| 4 | "testing" | ||||
| 5 | |||||
| 6 | "github.com/rackspace/gophercloud" | ||||
| 7 | ) | ||||
| 8 | |||||
| 9 | func 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 | } | ||||