Files
authboss/internal/flashutil/flashutil_test.go
T
2015-02-01 14:17:18 -08:00

24 lines
322 B
Go

package flashutil
import (
"testing"
"gopkg.in/authboss.v0/internal/mocks"
)
func TestPull(t *testing.T) {
t.Parallel()
storer := mocks.MockClientStorer{"a": "1"}
v := Pull(storer, "a")
if v != "1" {
t.Error(`Expected value "1", got:`, v)
}
if len(storer) != 0 {
t.Error("Expected length of zero")
}
}