def test_grub_install_command_ubuntu_with_uefi_no_multi(self): uefi = True distroinfo = install_grub.distro.get_distroinfo() self.assertEqual( 'grub-install', install_grub.get_grub_install_command(uefi, distroinfo, self.target))
def test_grub_install_command_redhat_no_uefi(self): uefi = False self.m_os_release.return_value = {'ID': 'rhel'} distroinfo = install_grub.distro.get_distroinfo() self.assertEqual( 'grub2-install', install_grub.get_grub_install_command(uefi, distroinfo, self.target))
def test_grub_install_command_ubuntu_with_uefi(self): self.m_exists.return_value = True uefi = True distroinfo = install_grub.distro.get_distroinfo() self.assertEqual( install_grub.GRUB_MULTI_INSTALL, install_grub.get_grub_install_command(uefi, distroinfo, self.target))