예제 #1
0
 def test_delete(self):
     '''
     Tests to remove the named group
     '''
     mock = MagicMock(return_value={'retcode': 0})
     with patch.dict(pw_group.__salt__, {'cmd.run_all': mock}):
         self.assertTrue(pw_group.delete('a'))
예제 #2
0
def test_delete():
    """
    Tests to remove the named group
    """
    mock = MagicMock(return_value={"retcode": 0})
    with patch.dict(pw_group.__salt__, {"cmd.run_all": mock}):
        assert pw_group.delete("a")
예제 #3
0
 def test_delete(self):
     '''
     Tests to remove the named group
     '''
     mock = MagicMock(return_value={'retcode': 0})
     with patch.dict(pw_group.__salt__, {'cmd.run_all': mock}):
         self.assertTrue(pw_group.delete('a'))