Esempio n. 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'))
Esempio n. 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'))
Esempio n. 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'))
Esempio n. 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"))