def test_get_pending_reboot_true_2(self):
     """
     If a computer name is returned, should return True
     """
     with patch(
             "salt.utils.win_system.get_pending_update", return_value=False
     ), patch(
             "salt.utils.win_update.needs_reboot", return_value=False
     ), patch("salt.utils.win_system.get_pending_update_exe_volatile",
              return_value=False), patch(
                  "salt.utils.win_system.get_pending_file_rename",
                  return_value=False
              ), patch(
                  "salt.utils.win_system.get_pending_servermanager",
                  return_value=False
              ), patch(
                  "salt.utils.win_system.get_pending_component_servicing",
                  return_value=False), patch(
                      "salt.utils.win_system.get_pending_dvd_reboot",
                      return_value=False
                  ), patch(
                      "salt.utils.win_system.get_reboot_required_witnessed",
                      return_value=False), patch(
                          "salt.utils.win_system.get_pending_computer_name",
                          return_value="pending name",
                      ):
         self.assertTrue(win_system.get_pending_reboot())
 def test_get_pending_reboot_true_1(self):
     """
     If any boolean returning functions return True, should return True
     """
     with patch(
             "salt.utils.win_system.get_pending_update", return_value=False
     ), patch(
             "salt.utils.win_update.needs_reboot", return_value=False
     ), patch("salt.utils.win_system.get_pending_update_exe_volatile",
              return_value=False), patch(
                  "salt.utils.win_system.get_pending_file_rename",
                  return_value=False
              ), patch(
                  "salt.utils.win_system.get_pending_servermanager",
                  return_value=False
              ), patch(
                  "salt.utils.win_system.get_pending_component_servicing",
                  return_value=False), patch(
                      "salt.utils.win_system.get_pending_dvd_reboot",
                      return_value=False
                  ), patch(
                      "salt.utils.win_system.get_reboot_required_witnessed",
                      return_value=False), patch(
                          "salt.utils.win_system.get_pending_computer_name",
                          return_value=None
                      ), patch(
                          "salt.utils.win_system.get_pending_domain_join",
                          return_value=True):
         self.assertTrue(win_system.get_pending_reboot())