video_test.go 525 B

123456789101112131415161718
  1. package model
  2. import (
  3. "github.com/smartystreets/goconvey/convey"
  4. "testing"
  5. )
  6. func Test_attribute(t *testing.T) {
  7. list := AttributeList(1048691)
  8. convey.Convey("属性列表", t, func() {
  9. convey.So(list["norank"], convey.ShouldEqual, 1)
  10. convey.So(list["nosearch"], convey.ShouldEqual, 1)
  11. convey.So(list["nodynamic"], convey.ShouldEqual, 1)
  12. convey.So(list["norecommend"], convey.ShouldEqual, 1)
  13. convey.So(list["oversea_block"], convey.ShouldEqual, 1)
  14. convey.So(list["push_blog"], convey.ShouldEqual, 1)
  15. })
  16. }