blob: 1e0fe230d66d23cd6bfa3599e04049bc4e3dde8f [file] [log] [blame]
Jon Perrittefe6d1f2015-02-09 12:04:06 -07001package buildinfo
2
3import (
4 "testing"
5
6 th "github.com/rackspace/gophercloud/testhelper"
7 fake "github.com/rackspace/gophercloud/testhelper/client"
8)
9
10func 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}