From 344eedb969366e62c38c6968d9bb85f7bbe7b960 Mon Sep 17 00:00:00 2001 From: arvidn Date: Sat, 15 Oct 2016 21:29:01 -0400 Subject: [PATCH] add python scrape_tracker test --- bindings/python/test.py | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/bindings/python/test.py b/bindings/python/test.py index 4e5fa9afe..3d6ff5325 100644 --- a/bindings/python/test.py +++ b/bindings/python/test.py @@ -40,6 +40,14 @@ class test_torrent_handle(unittest.TestCase): h.prioritize_pieces([(0, 1)]) self.assertEqual(h.piece_priorities(), [1]) + def test_scrape(self): + ses = lt.session({'alert_mask': lt.alert.category_t.all_categories, 'enable_dht': False}) + ti = lt.torrent_info('url_seed_multi.torrent'); + h = ses.add_torrent({'ti': ti, 'save_path': os.getcwd()}) + # this is just to make sure this function can be called like this + # from python + h.scrape_tracker() + class test_torrent_info(unittest.TestCase): def test_bencoded_constructor(self):