'CompleteFiles produces zsh shell-code that completes file names
according to a glob.'

def test_files(self):

    c = usage.CompleteFiles()
    got = c._shellCode('some-option', usage._ZSH)
    self.assertEqual(got, ':some-option    (*):_files    -g    "*"')
    c = usage.CompleteFiles('*.py')
    got = c._shellCode('some-option', usage._ZSH)
    self.assertEqual(got, ':some-option    (*.py):_files    -g    "*.py"')
    c = usage.CompleteFiles('*.py', descr='some    action', repeat=True)
    got = c._shellCode('some-option', usage._ZSH)
    self.assertEqual(got, '*:some    action    (*.py):_files    -g    "*.py"')
