'testing seeder ratio policy'

def test_seederratio_policy(self):

    policy = SeederRatioPolicy(self.session)
    (torrents_start, torrents_stop) = policy.apply(self.torrents, 6, force=True)
    ids_start = [torrent['metainfo'].get_infohash() for torrent in torrents_start]
    self.assertEqual(ids_start, [10, 8, 6])
    ids_stop = [torrent['metainfo'].get_infohash() for torrent in torrents_stop]
    self.assertEqual(ids_stop, [3, 1])
