'A C{Completer} with repeat=True may only be used as the
last item in the extraActions list.'

def test_brokenActions(self):

    class BrokenActions(usage.Options, ):
        compData = usage.Completions(extraActions=[usage.Completer(repeat=True), usage.Completer()])
    outputFile = BytesIO()
    opts = BrokenActions()
    self.patch(opts, '_shellCompFile', outputFile)
    self.assertRaises(ValueError, opts.parseOptions, ['', '--_shell-completion', 'zsh:2'])
