|
|
|
@ -87,8 +87,6 @@ class TestIptables(ModuleTestCase):
|
|
|
|
|
self.assertTrue(result.exception.args[0]['changed'])
|
|
|
|
|
|
|
|
|
|
self.assertEqual(run_command.call_count, 2)
|
|
|
|
|
# import pdb
|
|
|
|
|
# pdb.set_trace()
|
|
|
|
|
self.assertEqual(run_command.call_args_list[0][0][0], [
|
|
|
|
|
'/sbin/iptables',
|
|
|
|
|
'-t',
|
|
|
|
@ -123,8 +121,6 @@ class TestIptables(ModuleTestCase):
|
|
|
|
|
self.assertFalse(result.exception.args[0]['changed'])
|
|
|
|
|
|
|
|
|
|
self.assertEqual(run_command.call_count, 1)
|
|
|
|
|
# import pdb
|
|
|
|
|
# pdb.set_trace()
|
|
|
|
|
self.assertEqual(run_command.call_args_list[0][0][0], [
|
|
|
|
|
'/sbin/iptables',
|
|
|
|
|
'-t',
|
|
|
|
@ -151,8 +147,6 @@ class TestIptables(ModuleTestCase):
|
|
|
|
|
self.assertTrue(result.exception.args[0]['changed'])
|
|
|
|
|
|
|
|
|
|
self.assertEqual(run_command.call_count, 1)
|
|
|
|
|
# import pdb
|
|
|
|
|
# pdb.set_trace()
|
|
|
|
|
self.assertEqual(run_command.call_args_list[0][0][0], [
|
|
|
|
|
'/sbin/iptables',
|
|
|
|
|
'-t',
|
|
|
|
@ -188,8 +182,6 @@ class TestIptables(ModuleTestCase):
|
|
|
|
|
self.assertTrue(result.exception.args[0]['changed'])
|
|
|
|
|
|
|
|
|
|
self.assertEqual(run_command.call_count, 1)
|
|
|
|
|
# import pdb
|
|
|
|
|
# pdb.set_trace()
|
|
|
|
|
self.assertEqual(run_command.call_args_list[0][0][0], [
|
|
|
|
|
'/sbin/iptables',
|
|
|
|
|
'-t',
|
|
|
|
@ -226,8 +218,6 @@ class TestIptables(ModuleTestCase):
|
|
|
|
|
self.assertTrue(result.exception.args[0]['changed'])
|
|
|
|
|
|
|
|
|
|
self.assertEqual(run_command.call_count, 2)
|
|
|
|
|
# import pdb
|
|
|
|
|
# pdb.set_trace()
|
|
|
|
|
self.assertEqual(run_command.call_args_list[0][0][0], [
|
|
|
|
|
'/sbin/iptables',
|
|
|
|
|
'-t',
|
|
|
|
|