Commit 0291eff9 authored by obscuren's avatar obscuren

Identity test

parent c96e504a
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")
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment