aboutsummaryrefslogtreecommitdiffstats
path: root/ui/qt/qwhisper/whisper_test.go
blob: efa4e6238da4a1b4ca634c94b2eba5628be9666c (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
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")
    }
}