Jamie Hannaford | 8c072a3 | 2014-10-16 14:33:32 +0200 | [diff] [blame^] | 1 | package gophercloud |
2 | |||||
3 | import ( | ||||
4 | "testing" | ||||
5 | |||||
6 | th "github.com/rackspace/gophercloud/testhelper" | ||||
7 | ) | ||||
8 | |||||
9 | func 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 | } |