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