blob: 904b303ee9e5eed7e2f4e711b9ef4fe68925c5cd [file] [log] [blame]
package testing
import (
"testing"
"github.com/gophercloud/gophercloud"
th "github.com/gophercloud/gophercloud/testhelper"
)
func TestServiceURL(t *testing.T) {
c := &gophercloud.ServiceClient{Endpoint: "http://123.45.67.8/"}
expected := "http://123.45.67.8/more/parts/here"
actual := c.ServiceURL("more", "parts", "here")
th.CheckEquals(t, expected, actual)
}