nova/nova/tests
lzyeval ae1654bc59 PEP8 remove direct type comparisons
Fixes bug #910763

According to PEP8,
- Object type comparisons should always use isinstance() instead
      of comparing types directly.

        Yes: if isinstance(obj, int):

        No: if type(obj) is type(1):

      When checking if an object is a string, keep in mind that it might be a
      unicode string too! In Python 2.3, str and unicode have a common base
      class, basestring, so you can do:

        if isinstance(obj, basestring):

Change-Id: I7c0fdecf99872f5b8f72b2c2ed4f5c539c33def1
2012-01-03 11:12:42 +08:00
..
CA
api Merge "Adds EC2 ImportKeyPair API support." 2011-12-30 19:50:52 +00:00
bundle
db Xenapi driver can now generate swap from instance_type 2011-10-13 18:46:38 -05:00
glance Reducing the number of compute calls to Glance 2011-11-09 08:53:40 -05:00
image Sanitize EC2 manifests and image tarballs 2011-12-13 16:00:41 +01:00
integrated Allow accessIPv4 and accessIPv6 on rebuild action 2011-12-21 17:03:11 -05:00
monkey_patch_example Fixed some docstring 2011-08-23 09:46:49 -07:00
notifier Fixed some pep8 and pylint issues. 2011-08-23 15:50:39 -05:00
rpc Remove unneeded broken test case. 2011-12-21 23:04:51 -05:00
scheduler Fix scheduler error handler 2011-12-15 20:54:48 -08:00
vmwareapi Renaming instance_actions.instance_id column to instance_uuid. 2011-12-13 00:50:38 -05:00
xenapi Renaming instance_actions.instance_id column to instance_uuid. 2011-12-13 00:50:38 -05:00
__init__.py Separate metadata api into its own service 2011-11-15 13:27:58 -08:00
declare_flags.py
fake_flags.py Fix RPC responses to allow None response correctly. 2011-11-29 09:01:16 -08:00
fake_libvirt_utils.py Extend test_virt_driver to also test libvirt driver. 2011-11-22 17:30:27 +01:00
fake_network.py Remove VIF<->Network FK dependancy 2011-11-30 18:46:49 -06:00
fake_network_cache_model.py Adds network model and network info cache. 2011-12-08 17:33:04 -06:00
fake_utils.py PEP8 remove direct type comparisons 2012-01-03 11:12:42 +08:00
fakelibvirt.py Make fakelibvirt python2.6 compatible 2011-11-22 23:11:38 +01:00
hyperv_unittest.py switch FLAGS.* = in tests to self.flags(...) 2011-08-03 12:22:58 -07:00
runtime_flags.py
test_access.py fix test_access 2011-07-22 20:41:46 +00:00
test_adminapi.py Add ability to see deleted and active records. 2011-12-07 16:06:31 -06:00
test_api.py Relax dependency on boto 1.9b and nova-adminclient 2011-12-08 11:19:47 -08:00
test_auth.py Forgot to set the flag for the test 2011-08-23 13:44:21 -07:00
test_bdm.py ec2/cloud: unit tests for parser/formatter of block device mapping 2011-06-23 19:51:01 +09:00
test_block_device.py tests: unit tests for nova.block_device 2011-07-23 16:57:04 +09:00
test_cfg.py Make cfg work on python 2.6 2011-12-08 22:44:29 +00:00
test_compute.py Generate instance faults when instance errors 2011-12-21 10:14:58 -05:00
test_compute_utils.py Convert compute manager delete methods to objects 2011-11-29 16:26:13 -05:00
test_console.py fix a whole bunch of tests 2011-07-22 00:39:53 +00:00
test_context.py Update RequestContext so that it correctly sets self.is_admin from the 2011-08-29 22:27:28 -04:00
test_crypto.py pep8 2011-06-13 15:24:02 -04:00
test_db_api.py Expose Asynchronous Fault entity in the OSAPI 2011-12-15 11:47:12 -05:00
test_direct.py Beef up nova/api/direct.py tests 2011-09-28 10:25:10 +01:00
test_exception.py Update exception.wrap_exception so that all exceptions (not just Error 2011-09-15 22:53:42 -04:00
test_fakelibvirt.py Extend test_virt_driver to also test libvirt driver. 2011-11-22 17:30:27 +01:00
test_flags.py Deepcopy optparse defaults to avoid re-appending multistrings (#890489) 2011-11-15 16:14:30 +00:00
test_image.py Extend fake image service to let it hold image data 2011-11-10 13:35:40 +01:00
test_instance_types.py split rxtx_factor into network and instance_type 2011-11-30 15:19:02 -06:00
test_instance_types_extra_specs.py Replaces all references to nova.db.api with nova.db 2011-10-25 16:18:40 -04:00
test_iptables_network.py First steps towards consolidating testing infrastructure 2011-12-06 09:37:57 -08:00
test_ipv6.py Bug #835964: pep8 violations in IPv6 code 2011-08-28 16:17:17 +05:30
test_iscsi.py Allow the user to choose either ietadm or tgtadm (lp:819997) 2011-10-13 07:34:40 +01:00
test_libvirt.py Bug#898257 abstract out disk image access methods 2011-12-22 11:50:52 +00:00
test_linux_net.py Bugfix for lp904932 2011-12-15 16:53:33 -06:00
test_localization.py
test_log.py
test_metadata.py Add a DECLARE for dhcp_doamin flag to metadata handler. 2011-12-26 16:49:45 -05:00
test_misc.py Remove bzr related code in tests/test_misc 2011-12-06 15:48:08 -08:00
test_network.py Add an API for associating floating IPs with DNS entries. 2011-12-27 15:40:44 -06:00
test_network_info.py Adds network model and network info cache. 2011-12-08 17:33:04 -06:00
test_notifier.py Create notification queues as durable 2011-12-28 19:21:02 +00:00
test_nova_manage.py Add DHCP support to the QuantumManager and break apart dhcp/gateway 2011-11-04 20:11:53 -07:00
test_nova_rootwrap.py A more secure root-wrapper alternative 2011-12-07 15:10:04 +01:00
test_objectstore.py clean up fake auth manager in other places 2011-07-22 21:36:41 +00:00
test_quantum.py Pass additional information from nova to Quantum 2011-12-13 23:43:57 +00:00
test_quota.py Add ability to see deleted and active records. 2011-12-07 16:06:31 -06:00
test_service.py Port nova.flags to cfg 2011-12-08 22:44:29 +00:00
test_signer.py Fixes Bug #861293 2011-09-29 13:39:59 +01:00
test_skip_examples.py fixed pep8 issue 2011-08-04 23:01:22 -05:00
test_test.py ditched rpc.create_consumer(conn) interface... instead you now do conn.create_consumer(.. 2011-08-29 14:36:12 -07:00
test_test_utils.py Update a few doc strings. 2011-08-22 23:26:12 +02:00
test_utils.py Ensure generated passwords meet minimum complexity 2011-12-29 19:38:24 +00:00
test_versions.py comment strings 2011-08-20 18:28:30 -07:00
test_virt.py tests: unit tests for nova.virt 2011-07-23 16:57:05 +09:00
test_virt_drivers.py Merge "Implement resize down for XenAPI" 2011-12-05 21:16:40 +00:00
test_vmwareapi.py Add ability to see deleted and active records. 2011-12-07 16:06:31 -06:00
test_volume.py Fixes bug 888649 2011-11-28 14:13:13 +00:00
test_volume_types.py merged with rev.1488 2011-08-24 10:20:27 -07:00
test_volume_types_extra_specs.py Replaces all references to nova.db.api with nova.db 2011-10-25 16:18:40 -04:00
test_vsa.py Replaces all references to nova.db.api with nova.db 2011-10-25 16:18:40 -04:00
test_vsa_volumes.py cosmetic cleanup 2011-08-25 19:09:50 -07:00
test_wsgi.py Moves find config to utils because it is useful 2011-12-10 14:01:17 -08:00
test_xenapi.py Make XenAPI agent configuration synchronous 2011-12-15 15:22:31 +00:00
test_zones.py zone manager tests working 2011-09-12 15:36:18 -07:00
utils.py Implement resize down for XenAPI 2011-12-02 15:58:58 +00:00