add test for second overload of prioritize_pieces to python test

This commit is contained in:
arvidn 2016-04-02 15:52:37 -04:00
parent 55c35332ba
commit 398014778e
1 changed files with 4 additions and 0 deletions

View File

@ -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):