Exemple #1
0
 def test_getclockformat(self):
     '''
     Test for Return the current clock format, either 12h or 24h format.
     '''
     with patch('salt.modules.gnomedesktop._GSettings') as gsettings_mock:
         with patch.object(gsettings_mock, '_get', return_value=True):
             self.assertTrue(gnomedesktop.getClockFormat())
 def test_getclockformat(self):
     """
     Test for Return the current clock format, either 12h or 24h format.
     """
     with patch("salt.modules.gnomedesktop._GSettings") as gsettings_mock:
         with patch.object(gsettings_mock, "_get", return_value=True):
             self.assertTrue(gnomedesktop.getClockFormat())
Exemple #3
0
 def test_getclockformat(self, gsettings_mock):
     '''
     Test for Return the current clock format, either 12h or 24h format.
     '''
     with patch.object(gsettings_mock, '_get', return_value=True):
         self.assertTrue(gnomedesktop.getClockFormat())