mirror of https://github.com/ethereum/go-ethereum
parent
c96e504adb
commit
0291eff99a
@ -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") |
||||
} |
||||
} |
Loading…
Reference in new issue