gondole_test.go
author Ollivier Robert <roberto@keltia.net>
Wed, 12 Apr 2017 14:20:47 +0200
changeset 75 b361e3f89ea6
parent 68 6252b7eea308
child 79 d030a6eb770b
permissions -rw-r--r--
One cannot apply a method directly on {}, ok.

package gondole

import (
    "testing"
    "github.com/stretchr/testify/assert"
)

func TestPrepareRequest(t *testing.T) {
    g, err := NewApp("foo", nil, NoRedirect, "")
    assert.NoError(t, err, "no error")

    req := g.prepareRequest("bar")
    assert.NotNil(t, req.Headers, "not nil")
    assert.NotNil(t, req.QueryParams, "not nil")
}