33
32
[]string{"--unit-name", "wordpress/wild/9"},
34
33
[]string{"--unit-name", "20/20"},
37
36
c.Assert(err, ErrorMatches, `--unit-name option expects "<service>/<n>" argument`)
41
40
func (s *UnitSuite) TestParseUnknown(c *C) {
43
42
err := ParseAgentCommand(uc, []string{"--unit-name", "wordpress/1", "thundering typhoons"})
44
43
c.Assert(err, ErrorMatches, `unrecognized args: \["thundering typhoons"\]`)