예제 #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')
예제 #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')
예제 #3
0
 def setup_bloom_filter(self):
     self.b = BloomFilter()
예제 #4
0
 def setup_bloom_filter(self):
     self.b = BloomFilter()