text: package vmwarevsphere
  
  import (
  	"testing"
  
  	"github.com/docker/machine/libmachine/drivers"
  	"github.com/stretchr/testify/assert"
  )
  
  func TestSetConfigFromFlags(t *testing.T) {
  	driver := NewDriver("default", "path")
  
  	checkFlags := &drivers.CheckDriverOptions{
  		FlagsValues: map[string]interface{}{},
  		CreateFlags: driver.GetCreateFlags(),
  	}
  
  	err := driver.SetConfigFromFlags(checkFlags)
  
  	assert.NoError(t, err)
  	assert.Empty(t, checkFlags.InvalidFlags)
  }
  