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

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

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