blob: 074d52dfd5c2c91e8d5f42dbe860acd32b197ac6 [file] [log] [blame]
Jon Perritt70bba632014-09-13 00:32:32 -05001package accounts
2
3import (
4 "testing"
5
6 "github.com/rackspace/gophercloud"
Jon Perritt4a59d232014-10-09 20:21:31 -05007 th "github.com/rackspace/gophercloud/testhelper"
Jon Perritt70bba632014-09-13 00:32:32 -05008)
9
Jon Perritt4a59d232014-10-09 20:21:31 -050010const endpoint = "http://localhost:57909/"
11
12func endpointClient() *gophercloud.ServiceClient {
13 return &gophercloud.ServiceClient{Endpoint: endpoint}
14}
15
16func TestGetURL(t *testing.T) {
17 actual := getURL(endpointClient())
18 expected := endpoint
19 th.CheckEquals(t, expected, actual)
20}
21
22func TestUpdateURL(t *testing.T) {
23 actual := updateURL(endpointClient())
24 expected := endpoint
25 th.CheckEquals(t, expected, actual)
Jon Perritt70bba632014-09-13 00:32:32 -050026}