Exemplo n.º 1
0
 def test_setidledelay(self):
     '''
     Test for Set the current idle delay setting in seconds
     '''
     with patch('salt.modules.gnomedesktop._GSettings') as gsettings_mock:
         with patch.object(gsettings_mock, '_set', return_value=True):
             self.assertTrue(gnomedesktop.setIdleDelay(5))
 def test_setidledelay(self):
     """
     Test for Set the current idle delay setting in seconds
     """
     with patch("salt.modules.gnomedesktop._GSettings") as gsettings_mock:
         with patch.object(gsettings_mock, "_set", return_value=True):
             self.assertTrue(gnomedesktop.setIdleDelay(5))
Exemplo n.º 3
0
 def test_setidledelay(self, gsettings_mock):
     '''
     Test for Set the current idle delay setting in seconds
     '''
     with patch.object(gsettings_mock, '_set', return_value=True):
         self.assertTrue(gnomedesktop.setIdleDelay(5))