mirror of
https://github.com/arnaucube/go-ethereum.git
synced 2026-02-28 14:06:45 +01:00
Identity test
This commit is contained in:
15
ui/qt/qwhisper/whisper_test.go
Normal file
15
ui/qt/qwhisper/whisper_test.go
Normal file
@@ -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")
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user