blob: cc13c4effab5eafe902e66620ebe677acdef20e7 [file] [log] [blame]
Jon Perritt7adfd542014-10-08 11:14:59 -05001package flavors
2
3import (
4 "testing"
5
6 "github.com/rackspace/gophercloud"
7 th "github.com/rackspace/gophercloud/testhelper"
8)
9
10const endpoint = "http://localhost:57909/"
11
12func endpointClient() *gophercloud.ServiceClient {
13 return &gophercloud.ServiceClient{Endpoint: endpoint}
14}
15
16func TestGetURL(t *testing.T) {
17 actual := getURL(endpointClient(), "foo")
18 expected := endpoint + "flavors/foo"
19 th.CheckEquals(t, expected, actual)
20}
21
22func TestListURL(t *testing.T) {
23
24}