func removeUnit(c *gc.C, unit *state.Unit) { ensureUnitDead(c, unit) err := unit.Remove() c.Assert(err, jc.ErrorIsNil) }
func assertUnitRemoved(c *gc.C, unit *state.Unit) { assertUnitDead(c, unit) err := unit.Remove() c.Assert(err, jc.ErrorIsNil) }