Example #1
0
    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'})
Example #2
0
    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"})
Example #3
0
    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'})
Example #4
0
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"
    }