def test_add_port(self): ''' Test adding a port to a specific zone ''' with patch.object(firewalld, '__firewall_cmd', return_value='success'): self.assertEqual(firewalld.add_port('zone', '80/tcp'), 'success')
def test_add_port(self): """ Test adding a port to a specific zone """ with patch.object(firewalld, "__firewall_cmd", return_value="success"): self.assertEqual(firewalld.add_port("zone", "80/tcp"), "success")