def test_mod_aggregate(self): ''' Test to mod_aggregate function ''' self.assertDictEqual(iptables.mod_aggregate({'fun': 'salt'}, [], []), {'fun': 'salt'}) self.assertDictEqual(iptables.mod_aggregate({'fun': 'append'}, [], []), {'fun': 'append'})
def test_mod_aggregate(self): """ Test to mod_aggregate function """ self.assertDictEqual(iptables.mod_aggregate({"fun": "salt"}, [], []), {"fun": "salt"}) self.assertDictEqual(iptables.mod_aggregate({"fun": "append"}, [], []), {"fun": "append"})
def test_mod_aggregate(): """ Test to mod_aggregate function """ assert iptables.mod_aggregate({"fun": "salt"}, [], []) == {"fun": "salt"} assert iptables.mod_aggregate({"fun": "append"}, [], []) == { "fun": "append" }