Ejemplo n.º 1
0
 def test_remove_service(self):
     '''
     Test for Remove a service from zone
     '''
     with patch.object(firewalld, '__firewall_cmd', return_value=''):
         self.assertEqual(firewalld.remove_service('name'), '')
Ejemplo n.º 2
0
 def test_remove_service(self):
     """
     Test for Remove a service from zone
     """
     with patch.object(firewalld, "__firewall_cmd", return_value=""):
         self.assertEqual(firewalld.remove_service("name"), "")
Ejemplo n.º 3
0
 def test_remove_service(self):
     '''
     Test for Remove a service from zone
     '''
     with patch.object(firewalld, '__firewall_cmd', return_value=''):
         self.assertEqual(firewalld.remove_service('name'), '')