mirror of
https://gitlab.com/pulsechaincom/erigon-pulse.git
synced 2024-12-24 12:37:16 +00:00
16 lines
242 B
Go
16 lines
242 B
Go
|
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")
|
||
|
}
|
||
|
}
|