'Test the search procedure in the local database when searching for torrents'

@blocking_call_on_reactor_thread
def test_search_local_torrents(self):

    results = self.tdb.search_in_local_torrents_db('content', ['infohash'])
    self.assertEqual(len(results), 4848)
    self.assertNotEqual(results[0][(-1)], 0.0)
    results = self.tdb.search_in_local_torrents_db('fdsafasfds', ['infohash'])
    self.assertEqual(len(results), 0)
