blob: 04679dae4031d1a6a3c1aa5d1cfce703744ebe8c [file] [log] [blame]
Daniel Speichert44e3b542015-08-26 20:55:58 -04001package roles
2
3import (
4 "testing"
5
6 "github.com/rackspace/gophercloud"
7)
8
Daniel Speichert1cc1c842015-09-15 23:19:13 -04009func TestListAssignmentsURL(t *testing.T) {
Daniel Speichert44e3b542015-08-26 20:55:58 -040010 client := gophercloud.ServiceClient{Endpoint: "http://localhost:5000/v3/"}
Daniel Speichert1cc1c842015-09-15 23:19:13 -040011 url := listAssignmentsURL(&client)
Daniel Speichert44e3b542015-08-26 20:55:58 -040012 if url != "http://localhost:5000/v3/role_assignments" {
13 t.Errorf("Unexpected list URL generated: [%s]", url)
14 }
15}