forked from premiere/premiere-libtorrent
add test for second overload of prioritize_pieces to python test
This commit is contained in:
parent
55c35332ba
commit
398014778e
|
@ -21,6 +21,10 @@ class test_torrent_handle(unittest.TestCase):
|
|||
h.prioritize_pieces([0])
|
||||
self.assertEqual(h.piece_priorities(), [0])
|
||||
|
||||
# also test the overload that takes a list of piece->priority mappings
|
||||
h.prioritize_pieces([(0, 1)])
|
||||
self.assertEqual(h.piece_priorities(), [1])
|
||||
|
||||
class test_torrent_info(unittest.TestCase):
|
||||
|
||||
def test_bencoded_constructor(self):
|
||||
|
|
Loading…
Reference in New Issue