Fix tests failing in gate

gate-cinder-python27 gate-cinder-python34 is reporting failures where it
wasn't before. This is all due to new mock version 1.1.0.  This patch
fixed the tests to pass the gate.

Some of these errors are actual errors in our test code, while other are
changes to Mock syntax.

Closes-Bug: #1473454
Change-Id: If8eabfeacacc221e92dfece9f4937875bd70751e
This commit is contained in:
Gorka Eguileor
2015-07-10 13:20:16 +02:00
parent 5669075b28
commit 0f588ac59b
4 changed files with 10 additions and 10 deletions

View File

@@ -106,7 +106,7 @@ def _patch_mock_to_raise_for_invalid_assert_calls():
'assert_called_with',
'assert_called_once_with',
'assert_has_calls',
'assert_any_calls']
'assert_any_call']
if name.startswith('assert') and name not in valid_asserts:
raise AttributeError('%s is not a valid mock assert method'