Exemplo n.º 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'})
Exemplo n.º 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"})
Exemplo n.º 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'})
Exemplo n.º 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"
    }