tu-wien
/
kerma
Archived
2
0
Fork 0
This repository has been archived on 2023-03-02. You can view files and clone it, but cannot push or open issues or pull requests.
kerma/models/tests/generic_test.go

23 lines
425 B
Go

package tests
import (
"kerma/models"
"testing"
. "github.com/smartystreets/goconvey/convey"
)
func TestGeneric(t *testing.T) {
Convey("Given a new generic request", t, func() {
var generic models.Generic
Convey("When the BuildPeerRequest method is called", func() {
generic.BuildPeerRequest()
Convey("The type should be 'getpeers'", func() {
So(generic.Type, ShouldEqual, "getpeers")
})
})
})
}