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'), '')
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"), "")