Permalink
Browse files

ServiceURL unit test

  • Loading branch information...
1 parent 3ec6cfd commit a6ce2c53ebabe12225dede9fa76d255bccbb1254 @jrperritt jrperritt committed Oct 6, 2014
Showing with 14 additions and 0 deletions.
  1. +14 −0 service_client_test.go
@@ -0,0 +1,14 @@
+package gophercloud
+
+import (
+ "testing"
+
+ th "github.com/rackspace/gophercloud/testhelper"
+)
+
+func TestServiceURL(t *testing.T) {
+ c := &ServiceClient{Endpoint: "http://123.45.67.8/"}
+ expected := "http://123.45.67.8/more/parts/here"
+ actual := c.ServiceURL("more", "parts", "here")
+ th.CheckEquals(t, expected, actual)
+}

0 comments on commit a6ce2c5

Please sign in to comment.