Skip to content

Commit

Permalink
Identity test
Browse files Browse the repository at this point in the history
  • Loading branch information
obscuren committed Dec 15, 2014
1 parent c96e504 commit 0291eff
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions ui/qt/qwhisper/whisper_test.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
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")
}
}

0 comments on commit 0291eff

Please sign in to comment.