def test_anotherSubcommandWithFlagsAndOptions(self):
        """
        Flags and options of another subcommand are assigned.
        """
        o = SubCommandOptions()
        o.parseOptions(['holyquest', '--for-grail'])
        self.assertFalse(o['europian-swallow'])
        self.assertEqual(o.subCommand, 'holyquest')
        self.assertIsInstance(o.subOptions, HolyQuestOptions)
        self.assertFalse(o.subOptions['horseback'])
        self.assertTrue(o.subOptions['for-grail'])

        Flags and options of another subcommand are assigned.
        
stackoverflow/venv/lib/python3.6/site-packages/twisted/test/test_usage.py