9c7d6123e3
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 |
||
---|---|---|
.. | ||
__init__.py | ||
test_dmcrypt.py | ||
test_lvm.py | ||
test_rbd.py |