'Ensure the optimization which skips building the subcommand list
under certain conditions isn\'t broken.'

def test_skipSubcommandList(self):

    outputFile = BytesIO()
    self.patch(usage.Options, '_shellCompFile', outputFile)
    opts = FighterAceOptions()
    self.assertRaises(SystemExit, opts.parseOptions, ['--alba', '--_shell-completion', 'zsh:2'])
    outputFile.seek(0)
    self.assertEqual(1, len(outputFile.read(1)))
