예제 #1
0
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)
}
예제 #2
0
func (s *EnvironmentCommandSuite) TestCompatVersionDefault(c *gc.C) {
	cmd, err := initTestCommand(c)
	c.Assert(err, jc.ErrorIsNil)
	c.Assert(cmd.CompatVersion(), gc.Equals, 1)
}