Exemple #1
0
#!/usr/bin/env python
# -*- coding: utf-8 -*-

from iptc.test import test_iptc, test_matches, test_targets

test_iptc.run_tests()
test_matches.run_tests()
test_targets.run_tests()
Exemple #2
0
#!/usr/bin/env python
# -*- coding: utf-8 -*-

import sys

print "WARNING: this test will manipulate iptables rules."
print "Don't do this on a production machine."
while True:
    print "Would you like to continue? y/n",
    answer = raw_input()
    if answer in "yYnN" and len(answer) == 1:
        break
if answer in "nN":
    sys.exit(0)

from iptc.test import test_iptc, test_matches, test_targets

test_iptc.run_tests()
test_matches.run_tests()
test_targets.run_tests()