You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
26 lines
690 B
26 lines
690 B
package model |
|
|
|
import ( |
|
. "github.com/smartystreets/goconvey/convey" |
|
"testing" |
|
) |
|
|
|
var qv = &QATaskVideo{ |
|
VideoDetail: VideoDetail{ |
|
Attribute: 1048691, |
|
UPGroups: []int64{1, 2}, |
|
}, |
|
} |
|
|
|
func TestQATaskVideo_GetAttributeList(t *testing.T) { |
|
Convey("GetAttributeqv.AttributeList", t, func() { |
|
qv.GetAttributeList() |
|
t.Logf("attributeList(%+v)", qv.AttributeList) |
|
So(qv.AttributeList["norank"], ShouldEqual, 1) |
|
So(qv.AttributeList["nosearch"], ShouldEqual, 1) |
|
So(qv.AttributeList["nodynamic"], ShouldEqual, 1) |
|
So(qv.AttributeList["norecommend"], ShouldEqual, 1) |
|
So(qv.AttributeList["oversea_block"], ShouldEqual, 1) |
|
So(qv.AttributeList["push_blog"], ShouldEqual, 1) |
|
}) |
|
}
|
|
|