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 | |
Krzysztof Szukiełojć | 3f41d08 | 2017-05-07 14:43:06 +0200 | [diff] [blame] | 6 | "gerrit.mcp.mirantis.net/debian/gophercloud.git" |
Krzysztof Szukiełojć | 24a29ce | 2017-05-07 14:24:02 +0200 | [diff] [blame] | 7 | th "gerrit.mcp.mirantis.net/debian/gophercloud.git/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 | } |