blob: 8e70e2255f03230616c2c78bae1d9426dfc67515 [file] [log] [blame]
Daniel Speichert44e3b542015-08-26 20:55:58 -04001package roles
2
3import (
4 "testing"
5
6 "github.com/rackspace/gophercloud"
7)
8
9func TestRoleAssignmentsURL(t *testing.T) {
10 client := gophercloud.ServiceClient{Endpoint: "http://localhost:5000/v3/"}
11 url := roleAssignmentsURL(&client)
12 if url != "http://localhost:5000/v3/role_assignments" {
13 t.Errorf("Unexpected list URL generated: [%s]", url)
14 }
15}