cinder/cinder/tests/unit/api/views
Gorka Eguileor ef44589948 Simplify calls to mock_object
mock_object method in TestCase class now accepts keyword arguments that
will be properly handled when no new object is provided, so we can now
simplify calls in our tests.

This patch changes calls like
    self.mock_object(os.path, 'exists', mock.Mock(return_value=True))
into
    self.mock_object(os.path, 'exists', return_value=True)

Change-Id: I904ab4956a081c0292e2c982320e5005b055d3d5
2016-12-13 18:37:26 +01:00
..
__init__.py Enable api.view.test_versions unit tests 2016-03-11 05:55:02 -05:00
test_versions.py Simplify calls to mock_object 2016-12-13 18:37:26 +01:00