Exemple #1
0
 def test_tune(self):
     '''
     Tests if specified group was added
     '''
     mock = MagicMock()
     with patch.dict(extfs.__salt__, {'cmd.run': mock}):
         self.assertEqual('', extfs.tune('/dev/sda1'))
Exemple #2
0
 def test_tune(self):
     '''
     Tests if specified group was added
     '''
     mock = MagicMock()
     with patch.dict(extfs.__salt__, {'cmd.run': mock}):
         self.assertEqual('', extfs.tune('/dev/sda1'))
Exemple #3
0
 def test_tune(self):
     '''
     Tests if specified group was added
     '''
     mock = MagicMock()
     with patch.dict(extfs.__salt__, {'cmd.run': mock}), \
             patch('salt.modules.extfs.tune', MagicMock(return_value='')):
         self.assertEqual('', extfs.tune('/dev/sda1'))
Exemple #4
0
 def test_tune(self):
     """
     Tests if specified group was added
     """
     mock = MagicMock()
     with patch.dict(extfs.__salt__,
                     {"cmd.run": mock}), patch("salt.modules.extfs.tune",
                                               MagicMock(return_value="")):
         self.assertEqual("", extfs.tune("/dev/sda1"))