コード例 #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_