blob: bcfb7c4fdec71c2147f4ecbf330aed227f256e88 [file] [log] [blame]
package tokens
import (
"testing"
"github.com/rackspace/gophercloud"
)
func TestTokenURL(t *testing.T) {
setup()
defer teardown()
client := gophercloud.ServiceClient{Endpoint: endpoint()}
expected := endpoint() + "auth/tokens"
actual := getTokenURL(&client)
if actual != expected {
t.Errorf("Expected URL %s, but was %s", expected, actual)
}
}