예제 #1
0
 def test_add_service(self):
     '''
     Test for Add a service for zone
     '''
     with patch.object(firewalld, '__firewall_cmd', return_value=''):
         self.assertEqual(firewalld.add_service('name'), '')
예제 #2
0
 def test_add_service(self):
     """
     Test for Add a service for zone
     """
     with patch.object(firewalld, "__firewall_cmd", return_value=""):
         self.assertEqual(firewalld.add_service("name"), "")
예제 #3
0
 def test_add_service(self):
     '''
     Test for Add a service for zone
     '''
     with patch.object(firewalld, '__firewall_cmd', return_value=''):
         self.assertEqual(firewalld.add_service('name'), '')