File tree Expand file tree Collapse file tree 1 file changed +4
-0
lines changed Expand file tree Collapse file tree 1 file changed +4
-0
lines changed Original file line number Diff line number Diff line change @@ -307,9 +307,13 @@ def setUp(self):
307
307
self .mock_lvhdutil .LV_PREFIX = lvhdutil .LV_PREFIX
308
308
vhdutil_patcher = mock .patch ('sm.drivers.LVHDSR.vhdutil' , autospec = True )
309
309
self .mock_vhdutil = vhdutil_patcher .start ()
310
+ self .mock_vhdutil .getBlockSize .return_value = vhdutil .DEFAULT_VHD_BLOCK_SIZE
310
311
self .mock_vhdutil .VDI_TYPE_VHD = vhdutil .VDI_TYPE_VHD
311
312
self .mock_vhdutil .VDI_TYPE_RAW = vhdutil .VDI_TYPE_RAW
312
313
self .mock_vhdutil .MAX_CHAIN_SIZE = vhdutil .MAX_CHAIN_SIZE
314
+ vdi_vhdutil_patcher = mock .patch ('sm.VDI.vhdutil' , autospec = True )
315
+ self .mock_vdi_vhdutil = vdi_vhdutil_patcher .start ()
316
+ self .mock_vdi_vhdutil .getBlockSize .return_value = vhdutil .DEFAULT_VHD_BLOCK_SIZE
313
317
lvutil_patcher = mock .patch ('sm.drivers.LVHDSR.lvutil' , autospec = True )
314
318
self .mock_lvutil = lvutil_patcher .start ()
315
319
vdi_util_patcher = mock .patch ('sm.VDI.util' , autospec = True )
You can’t perform that action at this time.
0 commit comments