]> review.fuel-infra Code Review - openstack-build/neutron-build.git/commit
Utilize assertIsInstance
authorZhongyue Luo <zhongyue.nah@intel.com>
Fri, 6 Sep 2013 08:00:59 +0000 (16:00 +0800)
committerGerrit Code Review <review@openstack.org>
Thu, 3 Oct 2013 23:02:23 +0000 (23:02 +0000)
commitf13c8d8e0de4428e412b46089c9cc67dafe71fdb
tree5f7593ad280585e67bb6dd9852617e615d1c4539
parent4f35b5f424f5f4f6c94da331b4ba47c9defb6899
Utilize assertIsInstance

Using assertTrue and the 'isinstance' function to test
if an object is in an instance of some class is too python2.4.
Our unit testing framework supports assertIsInstance which was created
for these types of tests. Let's use assertIsInstance for these tests.

Fixes bug #1230028

Change-Id: Ia03c9f19a1c5e2aef3a6fe530515bd26339a7975
neutron/tests/unit/nicira/test_nvp_api_request_eventlet.py
neutron/tests/unit/test_linux_interface.py