jrperritt | 3d96616 | 2016-06-06 14:08:54 -0500 | [diff] [blame] | 1 | package testing |
Jon Perritt | a6ce2c5 | 2014-10-06 16:56:18 -0500 | [diff] [blame] | 2 | |
| 3 | import ( |
| 4 | "testing" |
| 5 | |
jrperritt | 3d96616 | 2016-06-06 14:08:54 -0500 | [diff] [blame] | 6 | "github.com/gophercloud/gophercloud" |
Jon Perritt | 27249f4 | 2016-02-18 10:35:59 -0600 | [diff] [blame] | 7 | th "github.com/gophercloud/gophercloud/testhelper" |
Jon Perritt | a6ce2c5 | 2014-10-06 16:56:18 -0500 | [diff] [blame] | 8 | ) |
| 9 | |
| 10 | func TestServiceURL(t *testing.T) { |
jrperritt | 3d96616 | 2016-06-06 14:08:54 -0500 | [diff] [blame] | 11 | c := &gophercloud.ServiceClient{Endpoint: "http://123.45.67.8/"} |
Jon Perritt | a6ce2c5 | 2014-10-06 16:56:18 -0500 | [diff] [blame] | 12 | expected := "http://123.45.67.8/more/parts/here" |
| 13 | actual := c.ServiceURL("more", "parts", "here") |
| 14 | th.CheckEquals(t, expected, actual) |
| 15 | } |