def test_get_pending_computer_name_none(self):
     """
     Will return the None if the pending computer is the current name
     """
     patch_value = {"vdata": os.environ.get("COMPUTERNAME")}
     with patch("salt.utils.win_reg.read_value", return_value=patch_value):
         self.assertIsNone(win_system.get_pending_computer_name())
 def test_get_pending_computer_name(self):
     """
     Will return the pending computer name if one is pending
     """
     expected = "PendingName"
     patch_value = {"vdata": expected}
     with patch("salt.utils.win_reg.read_value", return_value=patch_value):
         result = win_system.get_pending_computer_name()
         self.assertEqual(expected, result)
 def test_get_pending_computer_name_false(self):
     """
     Will return False if there is no pending computer name
     """
     with patch("salt.utils.win_reg.read_value", return_value=False):
         self.assertIsNone(win_system.get_pending_computer_name())