glance/glance/tests/unit/common
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
..
scripts Remove references of s3 store driver 2016-08-11 12:32:48 -04:00
__init__.py Improve unit tests for glance.common package 2013-05-20 17:31:22 +03:00
test_client.py Remove use of mox/mox3 2018-02-16 08:46:26 +00:00
test_config.py Introduce ''mock_object'' method to base test class 2018-08-09 12:40:12 -04:00
test_exception.py Enable python3.5 testing. 2016-12-21 05:55:37 +00:00
test_location_strategy.py Introduce ''mock_object'' method to base test class 2018-08-09 12:40:12 -04:00
test_property_utils.py Tests: Remove the redundant methods 2017-06-20 15:55:01 +08:00
test_rpc.py Merge "Extracted HTTP response codes to constants in tests" 2016-10-21 08:54:28 +00:00
test_scripts.py Introduces eventlet executor for Glance Tasks 2014-09-02 11:45:58 -04:00
test_swift_store_utils.py Tests: Remove the redundant methods 2017-06-20 15:55:01 +08:00
test_timeutils.py Use more specific asserts in unit tests 2016-08-04 21:17:52 +02:00
test_utils.py Clean the web-download tests 2018-03-09 12:31:00 -05:00
test_wsgi.py Introduce ''mock_object'' method to base test class 2018-08-09 12:40:12 -04:00