Cosmos Nicolaou | 6c6fa11 | 2014-08-19 13:22:33 -0700 | [diff] [blame] | 1 | package profiles_test |
| 2 | |
| 3 | import ( |
| 4 | "os" |
| 5 | "testing" |
| 6 | |
Jiri Simsa | 519c507 | 2014-09-17 21:37:57 -0700 | [diff] [blame] | 7 | "veyron.io/veyron/veyron/profiles" |
Cosmos Nicolaou | 6c6fa11 | 2014-08-19 13:22:33 -0700 | [diff] [blame] | 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 | } |