Exemplo n.º 1
0
 def test_simple2(self):
     ELM1 = 'something'
     ELM2 = 'something else'
     bf = BloomFilter(100000)
     bf.add_key(ELM1)
     bf.add_key(ELM2)
     self.assertTrue(bf.contains(ELM1))
     self.assertTrue(bf.contains(ELM2))
Exemplo n.º 2
0
 def test_simple(self):
     ELM1 = 'something'
     ELM2 = 'something else'
     bf = BloomFilter(100000)
     bf.add_key(ELM1)
     self.assertTrue(bf.contains(ELM1))
     #very insignificant chance that this next assertion will FAIL
     self.assertTrue(not(bf.contains(ELM2)))