'CompleteGroups produces zsh shell-code that completes system group
names.'

def test_groups(self):

    c = usage.CompleteGroups()
    out = c._shellCode('some-option', usage._ZSH)
    self.assertEqual(out, ':group:_groups')
    c = usage.CompleteGroups(descr='some    action', repeat=True)
    out = c._shellCode('some-option', usage._ZSH)
    self.assertEqual(out, '*:some    action:_groups')
