def test_rbdproxy_attribute_access_proxying(self): client = mock.MagicMock(ioctx='fake_ioctx') rbd_utils.RbdProxy().list(client.ioctx) self.mock_rbd.RBD.return_value.list.assert_called_once_with( client.ioctx)
def test_rbdproxy_wraps_rbd(self): proxy = rbd_utils.RbdProxy() self.assertIsInstance(proxy._rbd, tpool.Proxy)