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