示例#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'))
示例#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"))
示例#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'))
示例#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"))