'Testing whether the right list of files is returned when fetching files from a download'

def test_get_dest_files(self):

    self.libtorrent_download_impl.handle.file_priority = (lambda _: 123)
    mocked_file = MockObject()
    mocked_file.path = 'test'
    mock_torrent_info = MockObject()
    mock_torrent_info.files = (lambda : [mocked_file])
    self.libtorrent_download_impl.handle.get_torrent_info = (lambda : mock_torrent_info)
    dest_files = self.libtorrent_download_impl.get_dest_files()
    self.assertIsInstance(dest_files[0], tuple)
    self.assertEqual(dest_files[0][0], 'test')
