package storage import ( "testing" ) func TestUploadStatus(t *testing.T) { // start with new status // //status := UpPaid | UpStored //j, _ := json.Marshal(status) //fmt.Printf("%s", j) //fmt.Printf("%32b\n", UpPaid|UpStored) //err := SetUploadStatus("1", status) //if err != nil { //t.Error(err) //} // Set to stored //status |= UpStored //fmt.Println(status) //if !status.IsStored() { //t.Error() //} }