Exemplo n.º 1
0
 def test_lookup(self):
     bf = BloomFilter(10, 3)
     bf.insert(12)
     self.assertTrue(bf.lookup(12), 'should detect it was inserted')
Exemplo n.º 2
0
 def test_insert(self):
     bf = BloomFilter(10, 3)
     bf.insert(12)