def test_set_(self):
     """
     Test for Set 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.set_())
Exemplo n.º 2
0
 def test_set_(self):
     '''
     Test for Set 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.set_())
Exemplo n.º 3
0
 def test_set_(self, gsettings_mock):
     '''
     Test for Set key in a particular GNOME schema.
     '''
     with patch.object(gsettings_mock, '_get', return_value=True):
         self.assertTrue(gnomedesktop.set_())
Exemplo n.º 4
0
 def test_set_(self, gsettings_mock):
     '''
     Test for Set key in a particular GNOME schema.
     '''
     with patch.object(gsettings_mock, '_get', return_value=True):
         self.assertTrue(gnomedesktop.set_())