account_test.go 404 B

123456789101112131415161718
  1. package dao
  2. import (
  3. "context"
  4. "testing"
  5. "github.com/smartystreets/goconvey/convey"
  6. gock "gopkg.in/h2non/gock.v1"
  7. )
  8. func TestDaoBlockAccount(t *testing.T) {
  9. convey.Convey("BlockAccount", t, func() {
  10. defer gock.OffAll()
  11. httpMock("GET", d.c.Property.BlockAccountURL).Reply(200).JSON(`{"code":0}`)
  12. err := d.BlockAccount(context.TODO(), 7593623, "1")
  13. convey.So(err, convey.ShouldBeNil)
  14. })
  15. }