'Testing whether the API finds no channels/torrents when searching if they are not in the database'

@deferred(timeout=10)
def test_search_no_matches(self):

    self.insert_channels_in_db(5)
    self.insert_torrents_in_db(6)
    self.expected_num_results_list = [0, 0]
    expected_json = {'queried': True}
    return self.do_request('search?q=tribler', expected_code=200, expected_json=expected_json).addCallback(self.verify_search_results)
