Revision 0813170b
b/test/ganeti.opcodes_unittest.py | ||
---|---|---|
381 | 381 |
self.assertFalse(fn([[constants.DDM_ADD]])) |
382 | 382 |
|
383 | 383 |
def testNicModifications(self): |
384 |
fn = opcodes.OpInstanceSetParams._TestNicModifications
|
|
384 |
fn = opcodes.OpInstanceSetParams.TestNicModifications |
|
385 | 385 |
self._GenericTests(fn) |
386 | 386 |
|
387 | 387 |
for param in constants.INIC_PARAMS: |
... | ... | |
389 | 389 |
self.assertTrue(fn([[constants.DDM_ADD, {param: param}]])) |
390 | 390 |
|
391 | 391 |
def testDiskModifications(self): |
392 |
fn = opcodes.OpInstanceSetParams._TestDiskModifications
|
|
392 |
fn = opcodes.OpInstanceSetParams.TestDiskModifications |
|
393 | 393 |
self._GenericTests(fn) |
394 | 394 |
|
395 | 395 |
for param in constants.IDISK_PARAMS: |
Also available in: Unified diff