vip_test.go 511 B

1234567891011121314151617181920212223
  1. package pendant
  2. import (
  3. "testing"
  4. "github.com/smartystreets/goconvey/convey"
  5. )
  6. func TestPendantVipInfo(t *testing.T) {
  7. convey.Convey("VipInfo", t, func(ctx convey.C) {
  8. var (
  9. mid = int64(650454)
  10. ip = "127.0.0.1"
  11. )
  12. ctx.Convey("When everything goes positive", func(ctx convey.C) {
  13. idt, err := d.VipInfo(c, mid, ip)
  14. ctx.Convey("Then err should be nil.idt should not be nil.", func(ctx convey.C) {
  15. ctx.So(err, convey.ShouldBeNil)
  16. ctx.So(idt, convey.ShouldNotBeNil)
  17. })
  18. })
  19. })
  20. }