

def test_enable_search_commit_hook(self):
    bucket = self.client.bucket(testrun_search_bucket)
    bucket.clear_properties()
    c = self.create_client()
    self.assertFalse(c.bucket(testrun_search_bucket).search_enabled())
    c.close()
    bucket.enable_search()
    c = self.create_client()
    self.assertTrue(c.bucket(testrun_search_bucket).search_enabled())
    c.close()

dataset/ETHPy150Open basho/riak-python-client/riak/tests/test_search.py EnableSearchTests.test_enable_search_commit_hook/original