Jon Perritt | 70bba63 | 2014-09-13 00:32:32 -0500 | [diff] [blame^] | 1 | package accounts |
2 | |||||
3 | import ( | ||||
4 | "net/http" | ||||
5 | "testing" | ||||
6 | ) | ||||
7 | |||||
8 | func TestExtractMetadata(t *testing.T) { | ||||
9 | getResult := &http.Response{} | ||||
10 | |||||
11 | expected := map[string]string{} | ||||
12 | |||||
13 | actual := ExtractMetadata(getResult) | ||||
14 | |||||
15 | for key, value := range expected { | ||||
16 | if value != actual[key] { | ||||
17 | t.Errorf("Expected: %+v\nActual:%+v", expected, actual) | ||||
18 | } | ||||
19 | } | ||||
20 | } |