~ubuntu-branches/ubuntu/vivid/juju-core/vivid-proposed

« back to all changes in this revision

Viewing changes to src/github.com/juju/juju/cmd/juju/storage/storage_test.go

  • Committer: Package Import Robot
  • Author(s): Curtis C. Hovey
  • Date: 2015-09-29 19:43:29 UTC
  • mfrom: (47.1.4 wily-proposed)
  • Revision ID: package-import@ubuntu.com-20150929194329-9y496tbic30hc7vp
Tags: 1.24.6-0ubuntu1~15.04.1
Backport of 1.24.6 from wily. (LP: #1500916, #1497087)

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
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
}