github.com/stripe/stripe-go/v76@v76.25.0/countryspec/client_test.go (about) 1 package countryspec 2 3 import ( 4 "testing" 5 6 assert "github.com/stretchr/testify/require" 7 stripe "github.com/stripe/stripe-go/v76" 8 _ "github.com/stripe/stripe-go/v76/testing" 9 ) 10 11 func TestCountrySpecGet(t *testing.T) { 12 spec, err := Get("US", nil) 13 assert.Nil(t, err) 14 assert.NotNil(t, spec) 15 } 16 17 func TestCountrySpecList(t *testing.T) { 18 i := List(&stripe.CountrySpecListParams{}) 19 20 // Verify that we can get at least one spec 21 assert.True(t, i.Next()) 22 assert.Nil(t, i.Err()) 23 assert.NotNil(t, i.CountrySpec()) 24 assert.NotNil(t, i.CountrySpecList()) 25 }