Beispiel #1
0
func (s *BlockCommandSuite) TestBlockDestroyOperations(c *gc.C) {
	command := block.DestroyCommand{}
	_, err := testing.RunCommand(c, envcmd.Wrap(&command), "TestBlockDestroyOperations")
	c.Assert(err, jc.ErrorIsNil)
	s.assertBlock(c, command.Info().Name, "TestBlockDestroyOperations")
}
Beispiel #2
0
func (s *BlockCommandSuite) TestBlockCmdNoMessage(c *gc.C) {
	command := block.DestroyCommand{}
	_, err := testing.RunCommand(c, envcmd.Wrap(&command))
	c.Assert(err, jc.ErrorIsNil)
	s.assertBlock(c, command.Info().Name, "")
}