]> review.fuel-infra Code Review - openstack-build/neutron-build.git/commit
Utilizes assertIsNone and assertIsNotNone
authorZhongyue Luo <zhongyue.nah@intel.com>
Wed, 9 Oct 2013 01:44:01 +0000 (09:44 +0800)
committerZhongyue Luo <zhongyue.nah@intel.com>
Wed, 23 Oct 2013 02:59:16 +0000 (10:59 +0800)
commit4114b91ca0d815bdc899d6b8d1e1be1b19795d66
tree06e3c825b35f17d19d947ec5ce5c32fb923cafae
parent7ce5368ee0ed541e98e83be33370c4193a5c4a2a
Utilizes assertIsNone and assertIsNotNone

Using assertEqual/assertNotEqual to test if an element
is or is not None is too python2.4.
Our unit testing framework supports assertIsNone and assertIsNotNone
which were created for these types of tests.

Partial-bug: #1230028

Change-Id: Ie0bddae642f7973ee8b0e00164415f8d87de387e
22 files changed:
neutron/tests/unit/db/firewall/test_db_firewall.py
neutron/tests/unit/linuxbridge/test_lb_neutron_agent.py
neutron/tests/unit/linuxbridge/test_lb_security_group.py
neutron/tests/unit/ml2/drivers/test_arista_mechanism_driver.py
neutron/tests/unit/ml2/test_security_group.py
neutron/tests/unit/ml2/test_type_gre.py
neutron/tests/unit/ml2/test_type_vxlan.py
neutron/tests/unit/mlnx/test_mlnx_security_group.py
neutron/tests/unit/nec/test_db.py
neutron/tests/unit/nicira/test_nicira_plugin.py
neutron/tests/unit/openvswitch/test_ovs_security_group.py
neutron/tests/unit/ryu/test_ryu_security_group.py
neutron/tests/unit/test_api_v2_resource.py
neutron/tests/unit/test_attributes.py
neutron/tests/unit/test_common_utils.py
neutron/tests/unit/test_config.py
neutron/tests/unit/test_db_plugin.py
neutron/tests/unit/test_extension_ext_gw_mode.py
neutron/tests/unit/test_extension_extraroute.py
neutron/tests/unit/test_l3_plugin.py
neutron/tests/unit/test_linux_ip_lib.py
neutron/tests/unit/test_routerserviceinsertion.py