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") }
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, "") }