'CompleteList produces zsh shell-code that completes words from a fixed
list of possibilities.'

def test_list(self):

    c = usage.CompleteList('ABC')
    got = c._shellCode('some-option', usage._ZSH)
    self.assertEqual(got, ':some-option:(A    B    C)')
    c = usage.CompleteList(['1', '2', '3'])
    got = c._shellCode('some-option', usage._ZSH)
    self.assertEqual(got, ':some-option:(1    2    3)')
    c = usage.CompleteList(['1', '2', '3'], descr='some    action', repeat=True)
    got = c._shellCode('some-option', usage._ZSH)
    self.assertEqual(got, '*:some    action:(1    2    3)')
