aboutsummaryrefslogtreecommitdiffstats
path: root/ui
diff options
context:
space:
mode:
authorobscuren <geffobscura@gmail.com>2014-12-16 04:52:50 +0800
committerobscuren <geffobscura@gmail.com>2014-12-16 04:52:50 +0800
commit0291eff99a79fa1c844a4214c326c4f2b5f913ff (patch)
tree66a172050e2cda0a628294ef61a19a07c81342c4 /ui
parentc96e504adb4a547b5e293d6930626cf2f9401ac2 (diff)
downloadgo-tangerine-0291eff99a79fa1c844a4214c326c4f2b5f913ff.tar
go-tangerine-0291eff99a79fa1c844a4214c326c4f2b5f913ff.tar.gz
go-tangerine-0291eff99a79fa1c844a4214c326c4f2b5f913ff.tar.bz2
go-tangerine-0291eff99a79fa1c844a4214c326c4f2b5f913ff.tar.lz
go-tangerine-0291eff99a79fa1c844a4214c326c4f2b5f913ff.tar.xz
go-tangerine-0291eff99a79fa1c844a4214c326c4f2b5f913ff.tar.zst
go-tangerine-0291eff99a79fa1c844a4214c326c4f2b5f913ff.zip
Identity test
Diffstat (limited to 'ui')
-rw-r--r--ui/qt/qwhisper/whisper_test.go15
1 files changed, 15 insertions, 0 deletions
diff --git a/ui/qt/qwhisper/whisper_test.go b/ui/qt/qwhisper/whisper_test.go
new file mode 100644
index 000000000..efa4e6238
--- /dev/null
+++ b/ui/qt/qwhisper/whisper_test.go
@@ -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")
+ }
+}