Example #1
0
func Test_Item(t *testing.T) {
	name := "test_item"
	template := database.NewTemplate(name)
	item := database.NewItem(template.GetId())

	testutils.Assert(item.GetName() == name, t, "Item didn't get created with correct name", name, item.GetName())
}
Example #2
0
func CreateTemplate(name string) types.Template {
	return db.NewTemplate(name)
}