]> review.fuel-infra Code Review - openstack-build/neutron-build.git/commit
Fix a test_db_plugin unit test side_effect usage
authorKevin Benton <blak111@gmail.com>
Sun, 14 Sep 2014 09:22:57 +0000 (02:22 -0700)
committerKevin Benton <blak111@gmail.com>
Sun, 14 Sep 2014 09:22:57 +0000 (02:22 -0700)
commit463dee2a943d1dc39f78eb26637d1b252d72d080
tree402246079ae524f8a509713c46e211b35df7c892
parentf095f993302f63d88ae8e90826aad706277996ca
Fix a test_db_plugin unit test side_effect usage

One of the unit tests didn't correctly use the side_effect
parameter for a mock to return different responses to multiple
calls, which resulted in an extra try-except block and an inline
note. This commit fixes the side_effect and removes the extra
catching code.

Change-Id: Ifa1a6a15025b710ecbba956b5b848e32314cf0cf
neutron/tests/unit/test_db_plugin.py