github.com/Pankov404/juju@v0.0.0-20150703034450-be266991dceb/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().(*storage.Command) 29 s.assertHelp(c, expectedSubCommmandNames) 30 }