func (s *EnvironmentCommandSuite) TestCompatVersionInvalid(c *gc.C) { s.PatchEnvironment(osenv.JujuCLIVersion, "invalid") cmd, err := initTestCommand(c) c.Assert(err, jc.ErrorIsNil) c.Assert(cmd.CompatVersion(), gc.Equals, 1) }
func (s *EnvironmentCommandSuite) TestCompatVersionDefault(c *gc.C) { cmd, err := initTestCommand(c) c.Assert(err, jc.ErrorIsNil) c.Assert(cmd.CompatVersion(), gc.Equals, 1) }