

def testCommonFlagsWithOptionalFlags(self):
    rack_resource = RackspaceResource(profile='US', region='DFW')
    cmd = util.RackCLICommand(rack_resource, 'servers', 'keypair', 'list')
    cmd.flags['all-pages'] = True
    self.assertEqual(self._GetCommand(), ['path/rack', 'servers', 'keypair', 'list', '--all-pages', '--output', 'json', '--profile', 'US', '--region', 'DFW'])

dataset/ETHPy150Open GoogleCloudPlatform/PerfKitBenchmarker/tests/providers/rackspace/util_test.py RackCLICommandTestCase.testCommonFlagsWithOptionalFlags/VarMisuse@51/83 `cmd`->`self`