def test_subcommandAliasWithFlagsAndOptions(self):
        """
        Flags and options of a subcommand alias are assigned.
        """
        o = SubCommandOptions()
        o.parseOptions(['inquest', '--expect', '--torture-device=feather'])
        self.assertFalse(o['europian-swallow'])
        self.assertEqual(o.subCommand, 'inquisition')
        self.assertIsInstance(o.subOptions, InquisitionOptions)
        self.assertTrue(o.subOptions['expect'])
        self.assertEqual(o.subOptions['torture-device'], 'feather')

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