Пример #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_