From 0291eff99a79fa1c844a4214c326c4f2b5f913ff Mon Sep 17 00:00:00 2001 From: obscuren Date: Mon, 15 Dec 2014 21:52:50 +0100 Subject: Identity test --- ui/qt/qwhisper/whisper_test.go | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 ui/qt/qwhisper/whisper_test.go (limited to 'ui') 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") + } +} -- cgit