glance/glance/tests
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
..
etc Implement and Enable Community Images 2017-01-18 17:56:12 +00:00
functional Introduce ''mock_object'' method to base test class 2018-08-09 12:40:12 -04:00
integration Introduce ''mock_object'' method to base test class 2018-08-09 12:40:12 -04:00
unit Introduce ''mock_object'' method to base test class 2018-08-09 12:40:12 -04:00
var Support importing OVA/OVF package to Glance 2016-02-24 14:35:19 -08:00
__init__.py Make eventlet monkey patching conform to best practices 2018-03-29 20:36:09 +00:00
stubs.py Remove unused None from dict.get() 2017-07-05 12:49:10 +00:00
test_hacking.py Hacking checks for not using dict iteration calls 2016-01-25 21:54:08 -08:00
utils.py Introduce ''mock_object'' method to base test class 2018-08-09 12:40:12 -04:00