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'))
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'))
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"))