task_qa_video_test.go 690 B

1234567891011121314151617181920212223242526
  1. package model
  2. import (
  3. . "github.com/smartystreets/goconvey/convey"
  4. "testing"
  5. )
  6. var qv = &QATaskVideo{
  7. VideoDetail: VideoDetail{
  8. Attribute: 1048691,
  9. UPGroups: []int64{1, 2},
  10. },
  11. }
  12. func TestQATaskVideo_GetAttributeList(t *testing.T) {
  13. Convey("GetAttributeqv.AttributeList", t, func() {
  14. qv.GetAttributeList()
  15. t.Logf("attributeList(%+v)", qv.AttributeList)
  16. So(qv.AttributeList["norank"], ShouldEqual, 1)
  17. So(qv.AttributeList["nosearch"], ShouldEqual, 1)
  18. So(qv.AttributeList["nodynamic"], ShouldEqual, 1)
  19. So(qv.AttributeList["norecommend"], ShouldEqual, 1)
  20. So(qv.AttributeList["oversea_block"], ShouldEqual, 1)
  21. So(qv.AttributeList["push_blog"], ShouldEqual, 1)
  22. })
  23. }