Changed "List" to "Show" in function name to disambiguate from tests 
testing --list.

On 05/06/14 13:16, Tim Penhey wrote:
>
> In cmd/juju/switch_test.go:
>
> > @@ -111,6 +137,49 @@ func (*SwitchSimpleSuite) TestListEnvironmentsAndChange(c *gc.C) {
> >  	c.Assert(err, gc.ErrorMatches, "cannot switch and list at the same time")
> >  }
> >
> > +func (*SwitchSimpleSuite) TestListEnvironmentInfoYaml(c *gc.C) {
> > +	patchEnvWithUser(c, "erewhemos")
> > +	context, err := testing.RunCommand(c, &SwitchCommand{}, "--format", "yaml")
> > +	c.Assert(err, gc.IsNil)
> > +	output := EnvInfo{}
> > +	goyaml.Unmarshal([]byte(testing.Stdout(context)), &output)
> > +	expected := EnvInfo{
> > +		Username:     "joe",
> > +		EnvironName:  "erewhemos",
> > +		StateServers: []string{"example.com", "kremvax.ru"},
> > +	}
> > +	c.Assert(output, gc.DeepEquals, expected)
> > +}
> > +
> > +func (*SwitchSimpleSuite) TestListEnvironmentInfoJson(c *gc.C) {
>
> This function name doesn't match what it does.
>
> —
> Reply to this email directly or view it on GitHub 
> <https://github.com/juju/juju/pull/20/files#r13420144>.
>