コード例 #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())
コード例 #2
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())
コード例 #3
0
ファイル: gnomedesktop_test.py プロジェクト: DaveQB/salt
 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())