'Test whether the right amount of torrents are returned when searching for torrents in db'

@blocking_call_on_reactor_thread
def test_search_names_no_sort(self):

    columns = ['T.torrent_id', 'infohash', 'status', 'num_seeders']
    self.tdb.channelcast_db = ChannelCastDBHandler(self.session)
    self.assertEqual(len(self.tdb.searchNames(['content'], keys=columns, doSort=False)), 4848)
    self.assertEqual(len(self.tdb.searchNames(['content', '1'], keys=columns, doSort=False)), 1)
