blob: fd2d46a0edb1c4fea09dbccc65ae7a5ddfdfac15 [file] [log] [blame]
Ash Wilsonb73b7f82014-08-29 15:38:06 -04001package services
2
3import (
4 "testing"
5
6 "github.com/rackspace/gophercloud"
7)
8
9func TestGetListURL(t *testing.T) {
10 client := gophercloud.ServiceClient{Endpoint: "http://localhost:5000/v3/"}
11 url := getListURL(&client)
12 if url != "http://localhost:5000/v3/services" {
13 t.Errorf("Unexpected list URL generated: [%s]", url)
14 }
15}