blob: bcfb7c4fdec71c2147f4ecbf330aed227f256e88 [file] [log] [blame]
Ash Wilsonb482d542014-08-28 15:48:04 -04001package tokens
2
3import (
4 "testing"
5
6 "github.com/rackspace/gophercloud"
7)
8
9func TestTokenURL(t *testing.T) {
10 setup()
11 defer teardown()
12
13 client := gophercloud.ServiceClient{Endpoint: endpoint()}
14
15 expected := endpoint() + "auth/tokens"
16 actual := getTokenURL(&client)
17 if actual != expected {
18 t.Errorf("Expected URL %s, but was %s", expected, actual)
19 }
20}