blob: 904b303ee9e5eed7e2f4e711b9ef4fe68925c5cd [file] [log] [blame]
jrperritt3d966162016-06-06 14:08:54 -05001package testing
Jon Perritta6ce2c52014-10-06 16:56:18 -05002
3import (
4 "testing"
5
jrperritt3d966162016-06-06 14:08:54 -05006 "github.com/gophercloud/gophercloud"
Jon Perritt27249f42016-02-18 10:35:59 -06007 th "github.com/gophercloud/gophercloud/testhelper"
Jon Perritta6ce2c52014-10-06 16:56:18 -05008)
9
10func TestServiceURL(t *testing.T) {
jrperritt3d966162016-06-06 14:08:54 -050011 c := &gophercloud.ServiceClient{Endpoint: "http://123.45.67.8/"}
Jon Perritta6ce2c52014-10-06 16:56:18 -050012 expected := "http://123.45.67.8/more/parts/here"
13 actual := c.ServiceURL("more", "parts", "here")
14 th.CheckEquals(t, expected, actual)
15}