func TestOption(t *testing.T) { config, err := configparser.Read("fastforward.conf") if err != nil { t.Error(err) } section, err := config.Section("DEFAULT") if err != nil { t.Error(err) } options := section.Options() log.Printf("option names:\n%s", options["provisioning_driver"]) assert.Equal(t, "playback", options["provisioning_driver"]) }
func TestLoadConf(t *testing.T) { var v Conf conf := v.LoadConf() log.Printf("LoadConf:\n%s", conf) assert.Equal(t, "playback", conf.DEFAULT["provisioning_driver"]) }