github.com/stripe/stripe-go/v76@v76.25.0/taxcode/client_test.go (about) 1 package taxcode 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 TestTaxCodeGet(t *testing.T) { 12 tr, err := Get("txcd_123", nil) 13 assert.Nil(t, err) 14 assert.NotNil(t, tr) 15 } 16 17 func TestTaxCodeList(t *testing.T) { 18 i := List(&stripe.TaxCodeListParams{}) 19 20 // Verify that we can get at least one tr 21 assert.True(t, i.Next()) 22 assert.Nil(t, i.Err()) 23 assert.NotNil(t, i.TaxCode()) 24 assert.NotNil(t, i.TaxCodeList()) 25 }