1
0
mirror of https://github.com/volatiletech/authboss.git synced 2025-02-03 13:21:22 +02:00
authboss/internal/flashutil/flashutil_test.go
Kris Runzer 1aa0da808c Move duplicate testing mocks to internal/mocks
- Add force err ability to internal/mocks
2015-02-11 16:38:09 -08:00

27 lines
375 B
Go

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