Пример #1
0
    def test_normal(self):
        initial_len = len(IptablesMangleController.get_iptables())

        for mangle_mark in mangle_mark_list:
            assert IptablesMangleController.add(mangle_mark) == 0

        assert len(IptablesMangleController.get_iptables()) > initial_len

        IptablesMangleController.clear()

        assert len(IptablesMangleController.get_iptables()) == initial_len
Пример #2
0
    def test_normal(self):
        initial_len = len(IptablesMangleController.get_iptables())

        for mangle_mark in mangle_mark_list:
            assert IptablesMangleController.add(mangle_mark) == 0

        assert len(IptablesMangleController.get_iptables()) > initial_len

        IptablesMangleController.clear()

        assert len(IptablesMangleController.get_iptables()) == initial_len
Пример #3
0
 def teardown_class(cls):
     IptablesMangleController.clear()
Пример #4
0
 def setup_class(cls):
     IptablesMangleController.clear()
Пример #5
0
 def teardown_class(cls):
     IptablesMangleController.clear()
Пример #6
0
 def setup_class(cls):
     IptablesMangleController.clear()