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