def test_open_ports(self):
        open_ports = config["open_ports"]
        self.build_file()
        for port in open_ports:
            self.assertTrue(port % "dport %s" in self.tempfiles["filter"])
dataset/ETHPy150Open facebookarchive/neti/tests/test_neti.py/NetiIPtablesTests.test_open_ports/swapped operands of `%`