github.com/sneal/packer@v0.5.2/builder/virtualbox/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 }