| "github.com/rackspace/gophercloud/pagination" |
| th "github.com/rackspace/gophercloud/testhelper" |
| "github.com/rackspace/gophercloud/testhelper/client" |
| func TestList(t *testing.T) { |
| HandleListExtensionsSuccessfully(t) |
| List(client.ServiceClient()).EachPage(func(page pagination.Page) (bool, error) { |
| actual, err := ExtractExtensions(page) |
| th.AssertDeepEquals(t, ExpectedExtensions, actual) |
| th.CheckEquals(t, 1, count) |
| func TestGet(t *testing.T) { |
| HandleGetExtensionSuccessfully(t) |
| actual, err := Get(client.ServiceClient(), "agent").Extract() |
| th.CheckDeepEquals(t, SingleExtension, actual) |