1
0
mirror of https://github.com/vikstrous/pirate-get synced 2025-01-10 10:04:21 +01:00
pirate-get/tests/test_local.py
2015-09-03 20:35:12 -07:00

19 lines
496 B
Python
Executable File

#!/usr/bin/env python3
import unittest
import pirate.local
import os
from tests import util
class TestLocal(unittest.TestCase):
def test_rich_xml(self):
path = util.data_path('rich.xml')
expected = [['magnet:?xt=urn:btih:b03c8641415d3a0fc7077f5bf567634442989a74&dn=High.Chaparall.S02E02.PDTV.XViD.SWEDiSH-HuBBaTiX', '?', '?']]
actual = pirate.local.search(path, ('High',))
self.assertEqual(actual, expected)
if __name__ == '__main__':
unittest.main()