Daniel Speichert | 44e3b54 | 2015-08-26 20:55:58 -0400 | [diff] [blame^] | 1 | package roles |
2 | |||||
3 | import ( | ||||
4 | "testing" | ||||
5 | |||||
6 | "github.com/rackspace/gophercloud" | ||||
7 | ) | ||||
8 | |||||
9 | func 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 | } |