Exemple #1
0
class BloomFilterTest(T.TestCase):
    @T.setup
    def setup_bloom_filter(self):
        self.b = BloomFilter()

    def test_insert_check(self):
        self.b.insert('aditya')
        assert self.b.check('aditya')

    def test_check_false(self):
        assert not self.b.check('adity')
Exemple #2
0
class BloomFilterTest(T.TestCase):
    
    @T.setup
    def setup_bloom_filter(self):
        self.b = BloomFilter()


    def test_insert_check(self):
        self.b.insert('aditya')
        assert self.b.check('aditya')


    def test_check_false(self):
        assert not self.b.check('adity')
Exemple #3
0
 def setup_bloom_filter(self):
     self.b = BloomFilter()
Exemple #4
0
 def setup_bloom_filter(self):
     self.b = BloomFilter()