~juju-qa/ubuntu/xenial/juju/xenial-2.0-beta3

« back to all changes in this revision

Viewing changes to src/github.com/juju/juju/cmd/juju/commands/helptool_test.go

  • Committer: Martin Packman
  • Date: 2016-03-30 19:31:08 UTC
  • mfrom: (1.1.41)
  • Revision ID: martin.packman@canonical.com-20160330193108-h9iz3ak334uk0z5r
Merge new upstream source 2.0~beta3

Show diffs side-by-side

added added

removed removed

Lines of Context:
21
21
 
22
22
func (suite *HelpToolSuite) TestHelpToolHelp(c *gc.C) {
23
23
        output := badrun(c, 0, "help", "help-tool")
24
 
        c.Assert(output, gc.Equals, `usage: juju help-tool [tool]
25
 
purpose: show help on a juju charm tool
 
24
        c.Assert(output, gc.Equals, `Usage: juju help-tool [tool]
 
25
 
 
26
Summary:
 
27
show help on a juju charm tool
26
28
`)
27
29
}
28
30
 
48
50
        } else {
49
51
                output = badrun(c, 0, "help-tool", "relation-get")
50
52
        }
51
 
        expectedHelp := `usage: relation-get \[options\] <key> <unit id>
52
 
purpose: get relation settings
53
 
 
54
 
options:
 
53
        expectedHelp := `Usage: relation-get \[options\] <key> <unit id>
 
54
 
 
55
Summary:
 
56
get relation settings
 
57
 
 
58
Options:
55
59
(.|\n)*
 
60
 
 
61
Details:
56
62
relation-get prints the value(.|\n)*`
57
63
        c.Assert(output, gc.Matches, expectedHelp)
58
64
}