func (s *AddUnitSuite) TestInitErrors(c *gc.C) { for i, t := range initAddUnitErrorTests { c.Logf("test %d", i) err := testing.InitCommand(service.NewAddUnitCommandForTest(s.fake), t.args) c.Check(err, gc.ErrorMatches, t.err) } }
func (s *AddUnitSuite) runAddUnit(c *gc.C, args ...string) error { _, err := testing.RunCommand(c, service.NewAddUnitCommandForTest(s.fake), args...) return err }