def test_103_action_return(self): """Check action GOTO""" action = {"type": "RETURN"} str = nftables_util.action_expression(action, "inet") print(str) assert (str == 'return')
def test_102_action_jump(self): """Check action JUMP""" action = {"type": "JUMP", "chain": "target"} str = nftables_util.action_expression(action, "inet") print(str) assert (str == 'jump target')
def test_103_action_goto(self): """Check action GOTO""" action = {"type": "GOTO", "chain": "target"} str = nftables_util.action_expression(action, "inet") print(str) assert (str == 'goto target')
def test_100_action_reject(self): """Check action REJECT""" action = {"type": "REJECT"} str = nftables_util.action_expression(action, "inet") print(str) assert (str == 'reject')
def test_101_action_accept(self): """Check action ACCEPT""" action = {"type": "ACCEPT"} str = nftables_util.action_expression(action, "inet") print(str) assert (str == 'accept')
def test_103_action_return(self): """Check action GOTO""" action = {"type": "RETURN"} str = nftables_util.action_expression(action, "inet") print(str) assert(str == 'return')
def test_103_action_goto(self): """Check action GOTO""" action = {"type": "GOTO", "chain":"target"} str = nftables_util.action_expression(action, "inet") print(str) assert(str == 'goto target')
def test_102_action_jump(self): """Check action JUMP""" action = {"type": "JUMP", "chain":"target"} str = nftables_util.action_expression(action, "inet") print(str) assert(str == 'jump target')
def test_101_action_accept(self): """Check action ACCEPT""" action = {"type": "ACCEPT"} str = nftables_util.action_expression(action, "inet") print(str) assert(str == 'accept')
def test_100_action_reject(self): """Check action REJECT""" action = {"type": "REJECT"} str = nftables_util.action_expression(action, "inet") print(str) assert(str == 'reject')