def testBloomFilter(self):
        bf = BloomFilter(capacity=10000)
        self.assertFalse('apple' in bf)
        bf.add('apple')
        self.assertTrue('apple' in bf)
        self.assertFalse('banana' in bf)
dataset/ETHPy150Open chineking/cola/tests/test_bloomfilter.py/Test.testBloomFilter/original