nova/nova/tests/unit/virt/libvirt/storage
Claudiu Belu 9c7d6123e3 tests: refactors and cleans up test_rbd.py
In the unit tests' setUp, it was setting self.mock_rbd = mock_rbd
(where mock_rbd is the argument passed by @mock.patch.object) and
setting all sorts of properties onto self.mock_rbd, but mock_rbd
would become invalid after setUp finished, as the mock.patch
decorator would remove the patched mock. The same applies with
mock_rados.

This patch addresses this issue by refactoring and simplifying the
unit tests.

Change-Id: Ie2bf4d559e5391be3fe778835673a11de7ec8e1b
Related-Bug: #1735588
2018-01-30 02:26:07 -08:00
..
__init__.py libvirt: move lvm/dmcrypt/rbd_utils modules under storage subdir 2015-07-27 12:47:31 -07:00
test_dmcrypt.py Move libvirts dmcrypt support to privsep. 2017-09-18 23:19:49 +10:00
test_lvm.py Move shred to privsep. 2017-10-23 09:36:28 +11:00
test_rbd.py tests: refactors and cleans up test_rbd.py 2018-01-30 02:26:07 -08:00