blob: 0bd0006db320ab0ea3b7fce0b6eb6e31cf7d6f4e [file] [log] [blame]
Jon Perritta6ce2c52014-10-06 16:56:18 -05001package gophercloud
2
3import (
4 "testing"
5
Jon Perritt27249f42016-02-18 10:35:59 -06006 th "github.com/gophercloud/gophercloud/testhelper"
Jon Perritta6ce2c52014-10-06 16:56:18 -05007)
8
9func TestServiceURL(t *testing.T) {
10 c := &ServiceClient{Endpoint: "http://123.45.67.8/"}
11 expected := "http://123.45.67.8/more/parts/here"
12 actual := c.ServiceURL("more", "parts", "here")
13 th.CheckEquals(t, expected, actual)
14}