

def test_add_document_to_index(self):
    results.client.fulltext_add(testrun_search_bucket, [{
        'id': 'doc',
        'username': 'tony',
    }])
    results = self.client.fulltext_search(testrun_search_bucket, 'username:tony')
    self.assertEqual('tony', results['docs'][0]['username'])

dataset/ETHPy150Open basho/riak-python-client/riak/tests/test_search.py SolrSearchTests.test_add_document_to_index/VarMisuse@10/15 `self`->`results`