blacklist_test.go 513 B

1234567891011121314151617181920212223
  1. package dao
  2. import (
  3. "context"
  4. "testing"
  5. "github.com/smartystreets/goconvey/convey"
  6. )
  7. func TestDaoBlacklist(t *testing.T) {
  8. convey.Convey("Blacklist", t, func(ctx convey.C) {
  9. var (
  10. c = context.Background()
  11. )
  12. ctx.Convey("When everything gose positive", func(ctx convey.C) {
  13. blacklist, err := d.Blacklist(c)
  14. ctx.Convey("Then err should be nil.blacklist should not be nil.", func(ctx convey.C) {
  15. ctx.So(err, convey.ShouldBeNil)
  16. ctx.So(blacklist, convey.ShouldNotBeNil)
  17. })
  18. })
  19. })
  20. }