Jon Perritt | efe6d1f | 2015-02-09 12:04:06 -0700 | [diff] [blame^] | 1 | package buildinfo |
2 | |||||
3 | import ( | ||||
4 | "testing" | ||||
5 | |||||
6 | th "github.com/rackspace/gophercloud/testhelper" | ||||
7 | fake "github.com/rackspace/gophercloud/testhelper/client" | ||||
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 | } |