Revision f824ae42 test/py/ganeti.cli_unittest.py

b/test/py/ganeti.cli_unittest.py
1260 1260
        },
1261 1261
      constants.ISPECS_STD: {
1262 1262
        },
1263
      constants.IPOLICY_DTS: allowedv,
1264
      constants.IPOLICY_VCPU_RATIO: allowedv,
1265
      constants.IPOLICY_SPINDLE_RATIO: allowedv,
1263 1266
      }
1264 1267
    pol1 = cli.CreateIPolicyFromOpts(ispecs_mem_size={},
1265 1268
                                     ispecs_cpu_count={"min": allowedv},
1266 1269
                                     ispecs_disk_count={},
1267 1270
                                     ispecs_disk_size={},
1268 1271
                                     ispecs_nic_count={},
1269
                                     ipolicy_disk_templates=None,
1270
                                     ipolicy_vcpu_ratio=None,
1271
                                     ipolicy_spindle_ratio=None,
1272
                                     ipolicy_disk_templates=allowedv,
1273
                                     ipolicy_vcpu_ratio=allowedv,
1274
                                     ipolicy_spindle_ratio=allowedv,
1272 1275
                                     allowed_values=[allowedv])
1273 1276
    self.assertEqual(pol1, exp_pol1)
1274 1277

  

Also available in: Unified diff