コード例 #1
0
 def test_get(self):
     """
     Test for Get key in a particular GNOME schema
     """
     with patch("salt.modules.gnomedesktop._GSettings") as gsettings_mock:
         with patch.object(gsettings_mock, "_get", return_value=True):
             self.assertTrue(gnomedesktop.get())
コード例 #2
0
 def test_get(self):
     '''
     Test for Get key in a particular GNOME schema
     '''
     with patch('salt.modules.gnomedesktop._GSettings') as gsettings_mock:
         with patch.object(gsettings_mock, '_get', return_value=True):
             self.assertTrue(gnomedesktop.get())
コード例 #3
0
ファイル: gnomedesktop_test.py プロジェクト: lvg01/salt.old
 def test_get(self, gsettings_mock):
     '''
     Test for Get key in a particular GNOME schema
     '''
     with patch.object(gsettings_mock, '_get', return_value=True):
         self.assertTrue(gnomedesktop.get())
コード例 #4
0
ファイル: gnomedesktop_test.py プロジェクト: DaveQB/salt
 def test_get(self, gsettings_mock):
     '''
     Test for Get key in a particular GNOME schema
     '''
     with patch.object(gsettings_mock, '_get', return_value=True):
         self.assertTrue(gnomedesktop.get())