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