github.com/axw/juju@v0.0.0-20161005053422-4bd6544d08d4/cmd/juju/romulus/allocate/export_test.go (about)

     1  // Copyright 2016 Canonical Ltd.
     2  // Licensed under the AGPLv3, see LICENCE file for details.
     3  
     4  package allocate
     5  
     6  import (
     7  	"github.com/juju/cmd"
     8  	"github.com/juju/juju/cmd/modelcmd"
     9  	"github.com/juju/juju/jujuclient"
    10  )
    11  
    12  func NewAllocateCommandForTest(api apiClient, store jujuclient.ClientStore) cmd.Command {
    13  	c := &allocateCommand{api: api}
    14  	c.SetClientStore(store)
    15  	return modelcmd.Wrap(c)
    16  }