func (s *ModelCommandSuite) testEnsureModelName(c *gc.C, expect string, args ...string) { cmd, err := initTestCommand(c, s.store, args...) c.Assert(err, jc.ErrorIsNil) c.Assert(cmd.ConnectionName(), gc.Equals, expect) }
func testEnsureEnvName(c *gc.C, expect string, args ...string) { cmd, err := initTestCommand(c, args...) c.Assert(err, gc.IsNil) c.Assert(cmd.ConnectionName(), gc.Equals, expect) }