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 2b043b78fa More work on cleaning up recover
- Add email layouts
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")
}
}