diff options
author | obscuren <geffobscura@gmail.com> | 2014-12-16 04:52:50 +0800 |
---|---|---|
committer | obscuren <geffobscura@gmail.com> | 2014-12-16 04:52:50 +0800 |
commit | 0291eff99a79fa1c844a4214c326c4f2b5f913ff (patch) | |
tree | 66a172050e2cda0a628294ef61a19a07c81342c4 /ui/qt | |
parent | c96e504adb4a547b5e293d6930626cf2f9401ac2 (diff) | |
download | dexon-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.go | 15 |
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") + } +} |