Cosmos Nicolaou | 6c6fa11 | 2014-08-19 13:22:33 -0700 | [diff] [blame] | 1 | package profiles_test |
2 | |||||
3 | import ( | ||||
4 | "os" | ||||
5 | "testing" | ||||
6 | |||||
7 | "veyron/profiles" | ||||
8 | ) | ||||
9 | |||||
10 | func 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 | } |