#NEWLINE# @ mock . patch . object ( driver . utilsfactory , 'get_hostutils' ) #NEWLINE# def test_check_minimum_windows_version( self , mock_get_hostutils ) : #NEWLINE# #INDENT# mock_hostutils = mock_get_hostutils . return_value #NEWLINE# mock_hostutils . check_min_windows_version . return_value = False #NEWLINE# self . assertRaises ( exception . HypervisorTooOld , mock_get_hostutils . driver . _check_minimum_windows_version )