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