blob: 5a67c6924c7558a3ba8a5e1cf61d55c2c2d1d0d1 [file] [log] [blame]
Cosmos Nicolaou6c6fa112014-08-19 13:22:33 -07001package profiles_test
2
3import (
4 "os"
5 "testing"
6
7 "veyron/profiles"
8)
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}