]> review.fuel-infra Code Review - openstack-build/cinder-build.git/commit
Raise exception for invalid mock assert calls
authorThang Pham <thang.g.pham@gmail.com>
Mon, 2 Mar 2015 00:43:58 +0000 (19:43 -0500)
committerThang Pham <thang.g.pham@gmail.com>
Mon, 16 Mar 2015 16:28:59 +0000 (12:28 -0400)
commita9b9d53a2fe86d90587053ece8b26b9ae2fdf3fb
tree08ecb25d0edb6897502bf767141ba8414067d895
parentd79e122a5aa3437c94ca81ff4cb508ddd8b1a553
Raise exception for invalid mock assert calls

Several test cases were using the wrong mock assert methods.
The following patch corrects these calls and adds a method in
test.py (sourced from nova/test.py) to make sure they are
properly caught in the future.

Closes-Bug: #1429669
Change-Id: Ic6e5bca0c3ddbfb402e412b51e882859cb49108c
cinder/test.py
cinder/tests/test_block_device.py
cinder/tests/test_dellscapi.py
cinder/tests/test_quobyte.py
cinder/tests/test_srb.py
cinder/tests/test_test.py