def test__validate_hashs_failure(): bloom_filter = BloomFilter(None, [], BIT_VECTOR_SIZE) hash_ = hashing_function.hash_key(DATA_KEY, BIT_VECTOR_SIZE) assert bloom_filter._validate_hashs([6]) == False
def test__validate_hashs_success(): bloom_filter = BloomFilter(None, [], BIT_VECTOR_SIZE) hash_ = hashing_function.hash_key(DATA_KEY, BIT_VECTOR_SIZE) assert bloom_filter._validate_hashs([hash_]) == True