We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4576bdf commit a58c2a0Copy full SHA for a58c2a0
iptc/test/test_iptc.py
@@ -45,6 +45,23 @@ def test_table6(self):
45
if mangle and raw:
46
self.assertNotEquals(id(mangle), id(raw))
47
48
+ def test_table6_autocommit(self):
49
+ table = iptc.Table(iptc.Table.FILTER, False)
50
+ self.assertEquals(table.autocommit, False)
51
+
52
+ rule = iptc.Rule()
53
+ rule.src = "1.2.3.4"
54
+ rule.dst = "2.3.4.5"
55
+ rule.protocol = "tcp"
56
57
58
+ rule.create_target('DROP')
59
60
61
+ match = rule.create_match('tcp')
62
+ match.dport = "80:90"
63
64
65
66
class TestTable(unittest.TestCase):
67
def setUp(self):
0 commit comments