aboutsummaryrefslogtreecommitdiffstats
path: root/ui/qt
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/qt
parentc96e504adb4a547b5e293d6930626cf2f9401ac2 (diff)
downloaddexon-0291eff99a79fa1c844a4214c326c4f2b5f913ff.tar
dexon-0291eff99a79fa1c844a4214c326c4f2b5f913ff.tar.gz
dexon-0291eff99a79fa1c844a4214c326c4f2b5f913ff.tar.bz2
dexon-0291eff99a79fa1c844a4214c326c4f2b5f913ff.tar.lz
dexon-0291eff99a79fa1c844a4214c326c4f2b5f913ff.tar.xz
dexon-0291eff99a79fa1c844a4214c326c4f2b5f913ff.tar.zst
dexon-0291eff99a79fa1c844a4214c326c4f2b5f913ff.zip
Identity test
Diffstat (limited to 'ui/qt')
-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")
+ }
+}