

@mock.patch('bareon.utils.grub.os.path.isfile', return_value=False)
def test_guess_grub2_default_not_found(self, mock_isfile):
    mock_isfile.assertRaises(errors.GrubUtilsError, gu.guess_grub2_default, '/target')

dataset/ETHPy150Open openstack/bareon/bareon/tests/test_grub_utils.py TestGrubUtils.test_guess_grub2_default_not_found/VarMisuse@24/49 `self`->`mock_isfile`