github.com/ttysteale/packer@v0.8.2-0.20150708160520-e5f8ea386ed8/builder/parallels/common/floppy_config_test.go (about) 1 package common 2 3 import ( 4 "testing" 5 ) 6 7 func TestFloppyConfigPrepare(t *testing.T) { 8 c := new(FloppyConfig) 9 10 errs := c.Prepare(testConfigTemplate(t)) 11 if len(errs) > 0 { 12 t.Fatalf("err: %#v", errs) 13 } 14 15 if len(c.FloppyFiles) > 0 { 16 t.Fatal("should not have floppy files") 17 } 18 }