Example #1
0
 def test_result_the_same(self, input_):
     assert ipset_hashsize(input_) == input_
Example #2
0
 def test_result_less_than(self, input_):
     assert ipset_hashsize(input_) == 8
Example #3
0
    def test_ok(self, input_):
        result = ipset_hashsize(input_)

        assert result & (result - 1) == 0
        assert result <= input_
Example #4
0
 def test_result_the_same(self, input_):
     assert ipset_hashsize(input_) == input_
Example #5
0
 def test_result_less_than(self, input_):
     assert ipset_hashsize(input_) == 8
Example #6
0
    def test_ok(self, input_):
        result = ipset_hashsize(input_)

        assert result & (result - 1) == 0
        assert result <= input_