github.com/karalabe/go-ethereum@v0.8.5/ui/qt/qwhisper/whisper_test.go (about)

     1  package qwhisper
     2  
     3  import (
     4  	"testing"
     5  
     6  	"github.com/ethereum/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  }