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):
307307 self .mock_lvhdutil .LV_PREFIX = lvhdutil .LV_PREFIX
308308 vhdutil_patcher = mock .patch ('sm.drivers.LVHDSR.vhdutil' , autospec = True )
309309 self .mock_vhdutil = vhdutil_patcher .start ()
310+ self .mock_vhdutil .getBlockSize .return_value = vhdutil .DEFAULT_VHD_BLOCK_SIZE
310311 self .mock_vhdutil .VDI_TYPE_VHD = vhdutil .VDI_TYPE_VHD
311312 self .mock_vhdutil .VDI_TYPE_RAW = vhdutil .VDI_TYPE_RAW
312313 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
313317 lvutil_patcher = mock .patch ('sm.drivers.LVHDSR.lvutil' , autospec = True )
314318 self .mock_lvutil = lvutil_patcher .start ()
315319 vdi_util_patcher = mock .patch ('sm.VDI.util' , autospec = True )
You can’t perform that action at this time.
0 commit comments