Пример #1
0
 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')
Пример #2
0
 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")
Пример #3
0
 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')