go-ethereum/ui/qt/qwhisper/whisper_test.go

16 lines
242 B
Go
Raw Normal View History

2014-12-15 22:52:50 +02:00
package qwhisper
import (
"testing"
"github.com/ethereum/go-ethereum/whisper"
)
func TestHasIdentity(t *testing.T) {
qw := New(whisper.New())
id := qw.NewIdentity()
if !qw.HasIdentity(id) {
t.Error("expected to have identity")
}
}