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