nova/nova/tests/virt
ChangBo Guo(gcb) 0bea84ac20 Removes the use of mutables as default args
Passing mutable objects as default args is a known Python pitfall.
We'd better avoid this. This commit changes mutable default args with
None, then use 'arg = arg or {}', 'arg = arg or []'. For unit code which
doesn't use the args , just set with None. This commit also adds hacking
check.

Closes-Bug: #1327473
Change-Id: I5a8492bf8ffef8e000b13b6bdfaef1968b96f816
2014-06-18 12:59:02 +08:00
..
baremetal Merge "Removed copyright from empty files" 2014-06-08 01:22:57 +00:00
disk Merge "Removed copyright from empty files" 2014-06-08 01:22:57 +00:00
hyperv Merge "Removed copyright from empty files" 2014-06-08 01:22:57 +00:00
libvirt Removes the use of mutables as default args 2014-06-18 12:59:02 +08:00
vmwareapi Removes the use of mutables as default args 2014-06-18 12:59:02 +08:00
xenapi xenapi: move find_vbd_by_number into volume utils 2014-06-11 16:59:59 +01:00
__init__.py refactor: extract method: connect_volume 2012-11-20 08:30:19 +00:00
test_block_device.py Set the volume access mode during volume attach 2014-04-22 15:12:11 -04:00
test_configdrive.py Test force_config_drive as a boolean as last resort 2014-06-17 07:52:28 +10:00
test_cpu.py Replace assertEqual(None, *) with assertIsNone in tests 2014-02-16 17:31:28 +08:00
test_driver.py Remove vi modelines 2014-02-03 14:19:44 +00:00
test_imagecache.py Image cache: move all of the variables to a common place 2013-12-17 02:33:45 -08:00
test_images.py Convert TestCases to NoDBTestCase 2013-09-21 06:58:31 +10:00
test_ironic_api_contracts.py Add test to verify ironic api contracts 2014-06-05 16:28:06 -04:00
test_virt.py Replace assertEqual(None, *) with assertIsNone in tests 2014-02-16 17:31:28 +08:00
test_virt_disk.py Check image exists before calling inject_data 2014-04-08 20:23:49 +03:00
test_virt_disk_vfs_guestfs.py Merge "Test guestfs without support for close_on_exit" 2014-02-10 19:20:15 +00:00
test_virt_disk_vfs_localfs.py Remove vi modelines 2014-02-03 14:19:44 +00:00
test_virt_drivers.py Save connection info in libvirt after volume connect 2014-06-13 10:36:10 -07:00
test_volumeutils.py Refactor get_iscsi_initiator to a common location 2014-02-17 16:48:02 +00:00