github.com/jonasnick/go-ethereum@v0.7.12-0.20150216215225-22176f05d387/ui/qt/qwhisper/whisper_test.go (about) 1 package qwhisper 2 3 import ( 4 "testing" 5 6 "github.com/jonasnick/go-ethereum/whisper" 7 ) 8 9 func TestHasIdentity(t *testing.T) { 10 qw := New(whisper.New()) 11 id := qw.NewIdentity() 12 if !qw.HasIdentity(id) { 13 t.Error("expected to have identity") 14 } 15 }