def test_remove_port_fwd(self): ''' Test removing port forwarding on a zone ''' with patch.object(firewalld, '__firewall_cmd', return_value='success'): self.assertEqual( firewalld.remove_port_fwd('zone', '22', '2222', 'tcp'), 'success')
def test_remove_port_fwd(self): """ Test removing port forwarding on a zone """ with patch.object(firewalld, "__firewall_cmd", return_value="success"): self.assertEqual( firewalld.remove_port_fwd("zone", "22", "2222", "tcp"), "success")
def test_remove_port_fwd(self): ''' Test removing port forwarding on a zone ''' with patch.object(firewalld, '__firewall_cmd', return_value='success'): self.assertEqual(firewalld.remove_port_fwd('zone', '22', '2222', 'tcp'), 'success')