author | Mikael Berthe <mikael@lilotux.net> |
Wed, 12 Apr 2017 23:36:46 +0200 | |
changeset 94 | beee0238a82e |
parent 79 | d030a6eb770b |
child 120 | 579912e9d0ef |
permissions | -rw-r--r-- |
package gondole import ( "testing" "github.com/stretchr/testify/assert" ) func TestPrepareRequest(t *testing.T) { g := &Client{ Name: "foo", ID: "666", Secret: "biiiip", APIBase: "http://example.com", } req := g.prepareRequest("bar") assert.NotNil(t, req.Headers, "not nil") assert.NotNil(t, req.QueryParams, "not nil") }