

@mock.patch('bareon.utils.grub.os.listdir')
def test_guess_grub1_datadir_default(self, mock_listdir):
    mock_listdir.return_value = ['dir', 'x86_64_dir']
    self.assertEqual('/usr/share/grub/x86_64_dir', gu.guess_grub1_datadir('/target'))

dataset/ETHPy150Open openstack/bareon/bareon/tests/test_grub_utils.py TestGrubUtils.test_guess_grub1_datadir_default/original