Exemple #1
0
 def test_getidleactivation(self):
     '''
     Test for Get whether the idle activation is enabled
     '''
     with patch('salt.modules.gnomedesktop._GSettings') as gsettings_mock:
         with patch.object(gsettings_mock, '_get', return_value=True):
             self.assertTrue(gnomedesktop.getIdleActivation())
 def test_getidleactivation(self):
     """
     Test for Get whether the idle activation is enabled
     """
     with patch("salt.modules.gnomedesktop._GSettings") as gsettings_mock:
         with patch.object(gsettings_mock, "_get", return_value=True):
             self.assertTrue(gnomedesktop.getIdleActivation())
Exemple #3
0
 def test_getidleactivation(self, gsettings_mock):
     '''
     Test for Get whether the idle activation is enabled
     '''
     with patch.object(gsettings_mock, '_get', return_value=True):
         self.assertTrue(gnomedesktop.getIdleActivation())