Ejemplo n.º 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)
}
Ejemplo n.º 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)
}