github.com/mhilton/juju-juju@v0.0.0-20150901100907-a94dd2c73455/cmd/juju/storage/storage_test.go (about)

     1  // Copyright 2015 Canonical Ltd.
     2  // Licensed under the AGPLv3, see LICENCE file for details.
     3  
     4  package storage_test
     5  
     6  import (
     7  	gc "gopkg.in/check.v1"
     8  
     9  	"github.com/juju/juju/cmd/juju/storage"
    10  )
    11  
    12  var expectedSubCommmandNames = []string{
    13  	"add",
    14  	"help",
    15  	"list",
    16  	"pool",
    17  	"show",
    18  	"volume",
    19  }
    20  
    21  type storageSuite struct {
    22  	HelpStorageSuite
    23  }
    24  
    25  var _ = gc.Suite(&storageSuite{})
    26  
    27  func (s *storageSuite) TestHelp(c *gc.C) {
    28  	s.command = storage.NewSuperCommand()
    29  	s.assertHelp(c, expectedSubCommmandNames)
    30  }