Merge "Loosen the assertion for logging scope type warnings"

This commit is contained in:
Zuul 2018-10-16 11:58:15 +00:00 committed by Gerrit Code Review
commit e88d1dd2d5
1 changed files with 1 additions and 1 deletions

View File

@ -161,7 +161,7 @@ class PolicyScopeTypesEnforcementTestCase(unit.TestCase):
)
with mock.patch('warnings.warn') as mock_warn:
policy.enforce(self.credentials, self.action, self.target)
mock_warn.assert_called_once_with(expected_msg)
mock_warn.assert_called_with(expected_msg)
class PolicyJsonTestCase(unit.TestCase):