blob: 680419817f5f1206539ee52558e5c9b93efe500c [file] [log] [blame]
Cosmos Nicolaou6c6fa112014-08-19 13:22:33 -07001package profiles_test
2
3import (
4 "os"
5 "testing"
6
Jiri Simsa519c5072014-09-17 21:37:57 -07007 "veyron.io/veyron/veyron/profiles"
Cosmos Nicolaou6c6fa112014-08-19 13:22:33 -07008)
9
10func TestGeneric(t *testing.T) {
11 p := profiles.New()
12
13 if got, want := p.Name(), "generic"; got != want {
14 t.Errorf("got %q, want %q", got, want)
15 }
16 hostname, _ := os.Hostname()
17 if got, want := p.Platform().Node, hostname; got != want {
18 t.Errorf("got %q, want %q", got, want)
19 }
20}