]> review.fuel-infra Code Review - openstack-build/neutron-build.git/commit
Utilizes assertNotIn
authorZhongyue Luo <zhongyue.nah@intel.com>
Fri, 6 Sep 2013 07:29:38 +0000 (15:29 +0800)
committerZhongyue Luo <zhongyue.nah@intel.com>
Wed, 9 Oct 2013 00:25:13 +0000 (08:25 +0800)
commitbdddb0bf1215fd5408e3a96ec4e3c73a1d34f2d1
treee8fb1da43d589e62b3d8f950c30d535a2cc020c6
parentc7db907ba614d33ddad60122e72b24fbf2ba379e
Utilizes assertNotIn

Using assertTrue and the 'not in' operator to test
if an element is in a sequence is too python2.4.
Our unit testing framework supports assertNotIn
which was created for these types of tests.

Fixes bug #1230028

Change-Id: Ibaf6c73c514b9ad27f8f37eb3f1043e31dbfdcc1
neutron/tests/unit/_test_extension_portbindings.py
neutron/tests/unit/nicira/test_nicira_plugin.py
neutron/tests/unit/test_extensions.py
neutron/tests/unit/test_iptables_manager.py
neutron/tests/unit/test_neutron_context.py