github.com/huaweicloud/golangsdk@v0.0.0-20210831081626-d823fe11ceba/openstack/compute/v2/extensions/limits/testing/requests_test.go (about) 1 package testing 2 3 import ( 4 "testing" 5 6 "github.com/huaweicloud/golangsdk/openstack/compute/v2/extensions/limits" 7 th "github.com/huaweicloud/golangsdk/testhelper" 8 "github.com/huaweicloud/golangsdk/testhelper/client" 9 ) 10 11 func TestGet(t *testing.T) { 12 th.SetupHTTP() 13 defer th.TeardownHTTP() 14 HandleGetSuccessfully(t) 15 16 getOpts := limits.GetOpts{ 17 TenantID: TenantID, 18 } 19 20 actual, err := limits.Get(client.ServiceClient(), getOpts).Extract() 21 th.AssertNoErr(t, err) 22 th.CheckDeepEquals(t, &LimitsResult, actual) 23 }