genofire/hs_monolith
genofire
/
hs_monolith
Archived
1
0
Fork 0
This repository has been archived on 2020-09-27. You can view files and clone it, but cannot push or open issues or pull requests.
hs_monolith/models/auth_test.go

20 lines
338 B
Go
Raw Normal View History

package models
import (
"testing"
"github.com/stretchr/testify/assert"
)
func TestAuth(t *testing.T) {
assert := assert.New(t)
perm, err := HasPermission("session", PermissionCreateGood)
assert.NoError(err)
assert.True(perm)
perm, err = HasPermission("session", PermissionCreateGood)
assert.NoError(err)
assert.True(perm)
}