blob: 18d15b39c2d0979deec81a480aa82deb83d03f95 [file] [log] [blame]
Jon Perrittefe6d1f2015-02-09 12:04:06 -07001package buildinfo
2
3import (
4 "testing"
5
Jon Perritt27249f42016-02-18 10:35:59 -06006 th "github.com/gophercloud/gophercloud/testhelper"
7 fake "github.com/gophercloud/gophercloud/testhelper/client"
Jon Perrittefe6d1f2015-02-09 12:04:06 -07008)
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}