This repository has been archived on 2020-04-20. You can view files and clone it, but cannot push or open issues or pull requests.
libricochet-go/identity/identity_test.go

17 lines
324 B
Go
Raw Normal View History

package identity
import (
"testing"
)
func TestIdentity(t *testing.T) {
id := Init("../testing/private_key")
if id.Initialized() == false {
t.Errorf("Identity should be initialized")
}
if id.Hostname() != "kwke2hntvyfqm7dr" {
t.Errorf("Expected %v as Hostname() got: %v", "kwke2hntvyfqm7dr", id.Hostname())
}
}