| Jon Perritt | a6ce2c5 | 2014-10-06 16:56:18 -0500 | [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 | } | ||||