package buildinfo | |
import ( | |
"testing" | |
th "github.com/gophercloud/gophercloud/testhelper" | |
fake "github.com/gophercloud/gophercloud/testhelper/client" | |
) | |
func TestGetTemplate(t *testing.T) { | |
th.SetupHTTP() | |
defer th.TeardownHTTP() | |
HandleGetSuccessfully(t, GetOutput) | |
actual, err := Get(fake.ServiceClient()).Extract() | |
th.AssertNoErr(t, err) | |
expected := GetExpected | |
th.AssertDeepEquals(t, expected, actual) | |
} |