add provider package tests

Signed-off-by: Evan Hazlett <ejhazlett@gmail.com>
This commit is contained in:
Evan Hazlett 2015-03-10 00:44:57 -04:00
parent 72f05505fa
commit b442515491
No known key found for this signature in database
GPG Key ID: A519480096146526
1 changed files with 17 additions and 0 deletions

17
provider/provider_test.go Normal file
View File

@ -0,0 +1,17 @@
package provider
import (
"testing"
)
func TestProviderType(t *testing.T) {
if None.String() != "" {
t.Fatal("None provider type should be empty string")
}
if Local.String() != "Local" {
t.Fatal("Local provider type should be 'Local'")
}
if Remote.String() != "Remote" {
t.Fatal("Remote provider type should be 'Remote'")
}
}