Exemple #1
0
 def test_delete(self):
     '''
     Tests if the specified group was deleted
     '''
     mock_ret = MagicMock(return_value={'retcode': 0})
     with patch.dict(groupadd.__salt__, {'cmd.run_all': mock_ret}):
         self.assertTrue(groupadd.delete('test'))
Exemple #2
0
 def test_delete(self):
     """
     Tests if the specified group was deleted
     """
     mock_ret = MagicMock(return_value={"retcode": 0})
     with patch.dict(groupadd.__salt__, {"cmd.run_all": mock_ret}):
         self.assertTrue(groupadd.delete("test"))
Exemple #3
0
 def test_delete(self):
     '''
     Tests if the specified group was deleted
     '''
     mock_ret = MagicMock(return_value={'retcode': 0})
     with patch.dict(groupadd.__salt__, {'cmd.run_all': mock_ret}):
         self.assertTrue(groupadd.delete('test'))
Exemple #4
0
 def test_delete(self):
     """
     Tests if the specified group was deleted
     """
     mock_ret = MagicMock(return_value={"retcode": 0})
     with patch.dict(groupadd.__salt__, {"cmd.run_all": mock_ret}):
         self.assertTrue(groupadd.delete("test"))