glance/glance/tests/unit/api
Charles Short 8954959817 Introduce ''mock_object'' method to base test class
We would like to fully remove mox from the test tree. Even for tests
that don't use mox's validation, many of them are using the symbol
patching with self.stubs.Set. We can do the same thing with the
monkeypatch fixture instead.

This introduces self.stub_out to nova/test.py and an example of what a
stubs => stub_out change would look like.

The teardown function in the converted test was removed at the same
time, as those should no longer be used.

Part of the mox community goal for Rocky.

Change-Id: I8f471ff8fee600ebb4e8907bf240007b7b4fe59f
Signed-off-by: Chuck Short <chucks@redhat.com>
2018-08-09 12:40:12 -04:00
..
middleware Port test_cache_manage to Python 3 2015-10-19 19:27:52 +02:00
__init__.py Add unit tests for size_checked_iter 2012-09-13 16:56:55 -07:00
test_cmd.py Introduce ''mock_object'' method to base test class 2018-08-09 12:40:12 -04:00
test_common.py Remove Images API v1 entry points 2018-07-13 10:21:49 +01:00
test_property_protections.py Fix assertEqual arguments order 2014-09-19 00:25:18 +08:00