

def test_solr_search_from_bucket(self):
    bucket = self.client.bucket(testrun_search_bucket)
    bucket.new('user', {
        'username': 'roidrage',
    }).store()
    results = results.search('username:roidrage')
    self.assertEqual(1, len(results['docs']))

dataset/ETHPy150Open basho/riak-python-client/riak/tests/test_search.py SearchTests.test_solr_search_from_bucket/VarMisuse@43/60 `bucket`->`results`