Jon Perritt | efe6d1f | 2015-02-09 12:04:06 -0700 | [diff] [blame] | 1 | package buildinfo |
| 2 | |
| 3 | import ( |
| 4 | "testing" |
| 5 | |
Jon Perritt | 27249f4 | 2016-02-18 10:35:59 -0600 | [diff] [blame^] | 6 | th "github.com/gophercloud/gophercloud/testhelper" |
| 7 | fake "github.com/gophercloud/gophercloud/testhelper/client" |
Jon Perritt | efe6d1f | 2015-02-09 12:04:06 -0700 | [diff] [blame] | 8 | ) |
| 9 | |
| 10 | func TestGetTemplate(t *testing.T) { |
| 11 | th.SetupHTTP() |
| 12 | defer th.TeardownHTTP() |
| 13 | HandleGetSuccessfully(t, GetOutput) |
| 14 | |
| 15 | actual, err := Get(fake.ServiceClient()).Extract() |
| 16 | th.AssertNoErr(t, err) |
| 17 | |
| 18 | expected := GetExpected |
| 19 | th.AssertDeepEquals(t, expected, actual) |
| 20 | } |