

@mock.patch('bareon.utils.grub.os.listdir')
def test_guess_grub1_datadir_not_found(self, mock_listdir):
    mock_listdir.return_value = ['dir', 'x86_64_dir', 'i386_dir']
    mock_listdir.assertRaises(errors.GrubUtilsError, gu.guess_grub1_datadir, '/target', 'fake_arch')

dataset/ETHPy150Open openstack/bareon/bareon/tests/test_grub_utils.py TestGrubUtils.test_guess_grub1_datadir_not_found/VarMisuse@32/72 `self`->`mock_listdir`