Jon Perritt | 3ec6cfd | 2014-10-06 16:49:48 -0500 | [diff] [blame] | 1 | package gophercloud |
2 | |||||
3 | import ( | ||||
4 | "testing" | ||||
5 | |||||
6 | th "github.com/rackspace/gophercloud/testhelper" | ||||
7 | ) | ||||
8 | |||||
9 | func TestAuthenticatedHeaders(t *testing.T) { | ||||
10 | p := &ProviderClient{ | ||||
11 | TokenID: "1234", | ||||
12 | } | ||||
13 | expected := map[string]string{"X-Auth-Token": "1234"} | ||||
14 | actual := p.AuthenticatedHeaders() | ||||
15 | th.CheckDeepEquals(t, expected, actual) | ||||
16 | } |